Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » 技术文章库  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 util.concurrent包简介
zls





发贴: 75
积分: 30
于 2003-08-04 22:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
对于每个项目,象许多其它应用程序基础结构服务一样,通常无需从头重新编写并发实用程序类(如工作队列和线程池)。
Concurrent Programming in Java(请参阅参考资料)的作者 Doug Lea 编写了一个极其优秀的、免费的并发实用程序包,它包括并发应用程序的锁、互斥、队列、线程池、轻量级任务、有效的并发集合、原子的算术操作和其它基本构件。人们一般称这个包为 util.concurrent(因为它实际的包名很长),该包将形成 Java Community Process JSR 166 正在标准化的 JDK 1.5 中 java.util.concurrent 包的基础。同时,util.concurrent 经过了良好的测试,许多服务器应用程序(包括 JBoss J2EE 应用程序服务器)都使用这个包。

>请阅读附件中的文章(摘自IBM developerWorks).

eloperWorks:Java 技术:Java 理论与实践:并发在一定程度上使一切变得简单.mht (69.83k)



作者 Re:util.concurrent包简介 [Re:zls]
davidself

猫哥

CJSDN高级会员


发贴: 1506
积分: 333
于 2003-08-05 17:04 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Rod Johnson在Expert One-on-One J2EE Design and Development中也提到过这个东西,关注。

JavaOne 2003最受欢迎的技术会议之一是Doug Lea关于util.concurrent并发工具包的讲座。这套广泛使用的并发工具包将构成J2SE 1.5中java.util.concurrent包的基础,并专门采用JSR 166来说明。

并发工具包的目的在于简单、大胆创新地处理并发应用程序,正如集合框处理数据结构那样。Java语言内置的并发原语—— synchronization, wait 和 notify ——级别较低并且很难使用。因而,我们希望java.util.concurrent包将具有足够丰富的并发构件块,使大部分服务器端的程序员根本就不必使用wait 和 notify。

正用来说明java.util.concurrent包的JSR-166包括:

锁定工具类
线程池
原子变量管理
线程协调
任务调度
信号量
互斥
JSR-166还包括若干个新的并发集合类,例如LinkedBlockingQueue 和 ConcurrentHashMap。为了使履行更加高效灵活,还可以通过更改JVM以支持高性能的比较并交换(compare-and-swap )操作以及精度为纳秒级的计时。

http://www-900.ibm.com/developerWorks/cn/java/j-jtp1126/index.shtml



--108的上铺--
davidself@twitter
作者 Re:util.concurrent包简介 [Re:zls]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-08-05 22:47 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Yea, this is THE concurrent lib, We've been using it for several years. Grab it and Doug's book.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:util.concurrent包简介 [Re:zls]
zls





发贴: 75
积分: 30
于 2003-08-06 00:42 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
楼上这位老兄,根据你们的使用经验,concurrent package的稳定性、可靠性和效率如何?


作者 Re:util.concurrent包简介 [Re:zls]
zls





发贴: 75
积分: 30
于 2003-08-06 02:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
关注JavaOne 2003,追踪 Java发展路线。

与过去的JavaOne会议一样,开放式技术专题关注Java技术的当前状态,介绍明年的发展路线。今年,Sun 副总裁Graham Hamilton和CTO Timothy Lindholm阐述了在接下来的12到18个月内,Java技术发展方向和关注焦点方面发生的一些值得关注的变化。

http://www-900.ibm.com/developerWorks/cn/java/j-jone1/



作者 Re:util.concurrent包简介 [Re:zls]
palatum



CJSDN高级会员


发贴: 451
积分: 80
于 2003-08-06 09:13 user profilesend a private message to usersend email to palatumsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
FTP上不知道是否有这个包。


作者 Re:util.concurrent包简介 [Re:zls]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-08-06 22:09 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
no trouble for the last several years, so pretty stable.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:util.concurrent包简介 [Re:zls]
zls





发贴: 75
积分: 30
于 2003-08-09 00:24 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
palatum,这个包可以直接到 http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html 下载。


作者 Re:util.concurrent包简介 [Re:zls]
zls





发贴: 75
积分: 30
于 2003-08-09 00:27 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
palatum,麻烦给加1分吧。自从FTP2改为2分制后,我好长时间都无法再上FTP2了,愁死了。



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923