Threads - suggestion for producer/consumer pattern - msg_queue (was ThreadPool)
7 Nov
2005
7 Nov
'05
6:28 a.m.
Hello,
the email with the 'ThreadPool' subject requested an implemention of the
synchronization channel between producer and consumer threads.
I've a suggestion (adopted from several books) - the only problem is how
to tell the consumer threads, that all producer have finished their
jobs. You can signal it from outside (deactive member function) or each
producer thread has to register on the message_queue (and unregister if
it has finished its job).
With best regards,
Oliver
<
6959
Age (days ago)
6959
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oliver.Kowalke@infineon.com