J
James Lavery
Hi everyone,
We're developing an application to capture data from several serial
ports, store in a database, and (optionally) forward on using FTP.
Each serial port is being processed in a thread, so that capture of
data can continue if the UI is blocked with a modal dialg, for
example.
I would like each thread to be able to pass any FTP work to a
dedicated thread, so that its data capture is not interrupted if the
FTP takes a long time.
So what I'm looking at is:
main thread
--- capture thread A
--- capture thread B
--- ftp thread
The big question is: how do I pass the ftp data from threads A/B to
the FTP thread?
In a similar vein, am I going to have problems if thread A and thread
B are both writing to my MSDE database?
The other question, of course, is whether there's a better way to do
it!
Any pointers greatly appreciated!
Thanks,
James
We're developing an application to capture data from several serial
ports, store in a database, and (optionally) forward on using FTP.
Each serial port is being processed in a thread, so that capture of
data can continue if the UI is blocked with a modal dialg, for
example.
I would like each thread to be able to pass any FTP work to a
dedicated thread, so that its data capture is not interrupted if the
FTP takes a long time.
So what I'm looking at is:
main thread
--- capture thread A
--- capture thread B
--- ftp thread
The big question is: how do I pass the ftp data from threads A/B to
the FTP thread?
In a similar vein, am I going to have problems if thread A and thread
B are both writing to my MSDE database?
The other question, of course, is whether there's a better way to do
it!
Any pointers greatly appreciated!
Thanks,
James