Hi Ranchers,
im working on a
thread pool(TP) implementation, but im having problems
finding a way to kill (i.e. remove) an inactive thread (i.e. worker).
When my TP is started I initialize a number of workers. After a period of
time (or when something happends) I'd like to be able remove 1 inactive
thread. Im not quite sure what to put in my "removeThread()" method.
Basicly I've got some threads floating around; sometimes doing some work
and sometimes waiting.. so I dont really know how I can get hold of one
of them so I can "kill it".
Suggestions?
Thanks in advance,
/Svend Rost