J
Justin
I am having trouble figuring out the best what to accomplish this fairly
simple goal. I have a program that controls a 1-wire network and I can only
make requests to it one at a time, but I will need to make new requests
(from multiple threads) before the first one is done. My idea is to use a
Queue to add requests to and then have another process (thread) that will
simply wait for the Queue to not be empty and then process requests one at a
time until it is empty and then again wait for the Queue to not be empty.
I'm looking for a basic framework of what would be best way to do this using
what Classes and how to signal between threads (if needed?). I would use
Queue, Thread? and ??
Any help is appreciated.
Norm
simple goal. I have a program that controls a 1-wire network and I can only
make requests to it one at a time, but I will need to make new requests
(from multiple threads) before the first one is done. My idea is to use a
Queue to add requests to and then have another process (thread) that will
simply wait for the Queue to not be empty and then process requests one at a
time until it is empty and then again wait for the Queue to not be empty.
I'm looking for a basic framework of what would be best way to do this using
what Classes and how to signal between threads (if needed?). I would use
Queue, Thread? and ??
Any help is appreciated.
Norm