开发者

Simple thread queue design pattern jdk1.4

开发者 https://www.devze.com 2023-03-13 06:52 出处:网络
I need to control the amount of concurrent thread\'s runnin开发者_JAVA技巧g. I think I need to use a thread pool? Is there a design pattern for this ? I\'m using JDK1.4There were lots of new classes a

I need to control the amount of concurrent thread's runnin开发者_JAVA技巧g. I think I need to use a thread pool? Is there a design pattern for this ? I'm using JDK1.4


There were lots of new classes added into the java.util.concurrent packages in JDK 5 and 6.

If you can't upgrade, I'd recommend looking for Doug Lea's concurrent JAR and seeing what it offers.

0

精彩评论

暂无评论...
验证码 换一张
取 消