[869] in Pthreads mailing list archive
threads pool - question.
daemon@ATHENA.MIT.EDU (Sunil K. Vallamkonda)
Mon Feb 28 21:06:44 2000
Date: Mon, 28 Feb 2000 17:52:50 -0800 (PST)
From: "Sunil K. Vallamkonda" <sunil@siara.com>
To: pthreads@MIT.EDU
Message-Id: <Pine.GSO.4.10.10002281749200.24074-100000@malt.mtv.siara.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hello,
Looking at page#100-103 of "Pthreads Programming" by
Nichols, Buttlar & Farrell (Oreilly ed.),
I am looking for any pointers to further documentation or
example source code for thread pool.
I would like to maintain a worker thread pool where number of
worker threads are waiting for work.
The master thread, puts work in queue and signals the worker
threads.
The question is since, more than one worker thread would be
waiting for work - how are they synchronized so that only one
gets into runnable state and other goes back to wait state.
Any pointers/info is appreciated.
Thx.
Sunil.