I use a thread pool and I have yet to find a pool that does a better job. I have had trouble with all pools except the one I have been using without trouble since 1999.

At 12:23 PM 2/18/2004, you wrote:
Danny Angus wrote:
Is there such a trivial pool impl available, or does anybody have clever
suggestions for how to do this?
Dunno how clever this is, but I often use two hashes  (table or map) (often
of vectors) to maintain a keyed pool (or pools where there can be more than
one instance for each key).
What I do is move the object from the "available" hash to the "busy" hash
to provide locking.
I suspect that you might be able to use a similar strategy.

Sorry, I've lost the context for this thread, but I use and like Jakarta's pool impl that does this.


http://jakarta.apache.org/commons/pool/

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to