Kees Jongenburger wrote:
> > ThreadPools are natively supported on java 1.5.
> Is it any good?

Er? yes? 

I suppose it is good, yes. Using them is quite straight-forward at least.
You need to implement your things in a Runnable and offer them to a
'Executor', which will then run it, e.g. using a thread-pool. It's quite
easy.

AFAIK, using a thread-pool is good, because threads are heavy to start up.
You need threads when filtering streams (Like in this ChainedTransformer, and
also in your IECompatibleInputStream a new Thread is used).

The other concurrency features seems interesting too, and it may be good to
already (be able to) use that too. E.g. a ConcurrentMap is thread-safe, but
will never (or almost never) lock on reads.

Michiel

-- 
Michiel Meeuwissen                  mihxil'
Mediacentrum 140 H'sum                [] ()
+31 (0)35 6772979         nl_NL eo_XX en_US



_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to