tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Hookom" <hooko...@uwec.edu>
Subject RE: Thread Pooling?
Date Mon, 05 Aug 2002 20:18:06 GMT
Here's the code I use for thread pooling, you basically instantiate a
thread pool for a specific task, as specified by the "worker"
implementation you pass at pool creation.  Then you just do
threadPool.doWork(Object data).  This gets passed to a stack of threads
that use your worker implementation to process that object.  It's pretty
open ended.

I did look for thread pooling code in the Catalina stuff, but I couldn't
find anything.  I'm sure there's other ways of handling thread pooling.

-Jake Hookom
 
> -----Original Message-----
> From: Vasquez, Jason [mailto:jvasquez@sonypictures.com]
> Sent: Monday, August 05, 2002 3:00 PM
> To: Tomcat (tomcat-user@jakarta.apache.org); Tomcat 2 (tomcat-
> dev@jakarta.apache.org)
> Subject: Thread Pooling?
> 
> We are trying to up the performance level of some
> Apache(1.3.22)/Tomcat(4.0.1) boxes and a colleague suggested setting
up
> thread pooling? I can't find this mentioned anywhere and I wanted to
know
> if
> such a thing existed?
> 
> Thanks,
> 
> Jason Vasquez
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.380 / Virus Database: 213 - Release Date: 7/24/2002
 
    

Mime
View raw message