worker model

worker model

Hi,

Suppose there are some worker objects which contains some internal resource such as socket. Those worker objects are created at the program startup and destroyed at program exit. The main thread will pass an object ID to one of the worker object. Then the worker will process it and send the result throght socket. What I want is those workers run parallely. Is there any of TBB component that can serve for this purpose?

1 Beitrag / 0 neu
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.