views:

107

answers:

1

I have seen several comments to the effect that Executors are better than Threads, but if you have a number of Threads communicating via bounded buffers (as in Flow-Based Programming) why would you use Executors when you have to use Threads anyway (with newCachedThreadPool (?)). Also, I use methods like isAlive(), interrupt() - how do I get hold of the Thread handle?

Does anyone have sample code that I can plagiarize? ;-)

A: 

In fact, the 1st answer WAS helpfull : if you have concurrency issues in your java application, then you SHOULD read this book right on ! The answer for your question is 380 pages long.

(To me, your question is the same as "what is advantage of Java over assembly ?")

BG
Paul Morrison