Re: OT: Thread pool samples

2008-09-04 Thread Laurie Harper
Zoran Avtarovski wrote: I¹m trying to implement a simple thread pool model (Java 1.4) for a telemetry application. I¹m getting up to speed with threads but I haven¹t been able to find any examples of setting a thread pool in a server/servlet environment. I have a number of remote units which up

Re: OT: Thread pool samples

2008-09-04 Thread Miguel
you can make use a static property of a class to hold a reference to a singleton of the thread pool. You should take a look to the stuff at java.util.concurrent, there are some nice queues and other thread safe and concurrent safe stuff, like queues with multiple producers and consumers, in differe

OT: Thread pool samples

2008-09-03 Thread Zoran Avtarovski
I¹m trying to implement a simple thread pool model (Java 1.4) for a telemetry application. I¹m getting up to speed with threads but I haven¹t been able to find any examples of setting a thread pool in a server/servlet environment. I have a number of remote units which upload telemetry data for pr