P
Perecli Manole
I have a background worker thread that receives queued work items and
processes them. How do I make this background thread go in a sleep state
while the queue is empty and then wake back up as soon as there are work
items to be performed?
To much processor time is being wasted right now checking an empty queue in
a loop.
Thanks
Perry
processes them. How do I make this background thread go in a sleep state
while the queue is empty and then wake back up as soon as there are work
items to be performed?
To much processor time is being wasted right now checking an empty queue in
a loop.
Thanks
Perry