开发者

Thread Library for Java

Anyone know of a good threading library for Java. Only real requirement for it is I need to modify the scheduler. Might have more requirements later so customization would be nic开发者_运维技巧e. Any advice or info on your experience with them would be great.

Thanks


Have a look at java.util.concurrent package: Package introduction documentation. It should have everything you need.


I would also suggest you stick with java.util.concurrent. You can modify how threads are scheduled for execution to a limited extend by implementing a custom ExecutorService.

If you're going to be doing any serious work with the concurrent package, I highly recommend Brian Goetz's book Java Concurrency in Practice.


If the java.util.concurrent package does not satisfy your requirements, Quartz is a great, open source, scheduler which allows you to schedule jobs for repeated execution, along with a whole lot of advanced features like fail-over, load-balancing, etc. I've used it for years and love it, but if java.util.concurrent will meet your needs, stick with that.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜