Gidday,
Quote:
Originally Posted by
sthangav
Dear Techies,
I'm finding resource to learn worker thread with epoll mechanism, Can you anyone explain worker thread with your best example ?
Thanks in Advance
Sathya
The question is too rough to be answered precisely. Generally speaking, the following pattern is meant:
1) You have one thread that epoll() some I/O event
2) When some I/O becomes ready, a another thread (the worker) thread takes care of the I/O to carry out while the thread in 1) epoll() again for some I/O event.
That way, you can have multiple I/O progress at the same time.
If you tell us more about the problem you want to solve (as opposed how you want to solve it), we may come up with better answer.
Brgs,
/Lew