没有合适的资源?快使用搜索试试~ 我知道了~
Concurrent - Programming in Java.pdf
5星 · 超过95%的资源 需积分: 13 72 下载量 174 浏览量
2012-04-20
15:05:48
上传
评论 1
收藏 574KB PDF 举报
温馨提示
试读
215页
Concurrent - Programming in Java.pdf,ppt,Doug Lea
资源推荐
资源详情
资源评论
Concurrent Programming in Java
1
Concurrent
Programming in Java
Doug Lea
State University of New York at Oswego
dl@cs.oswego.edu
http://gee.cs.oswego.edu
Concurrent Programming in Java
2
Topics
Concurrency
Models, design forces, Java
Designing objects for concurrency
Immutability, locking, state dependence, containment, splitting
Introducing concurrency into applications
Autonomous loops, oneway messages, interactive messages,
cancellation
Concurrent application architectures
Flow, parallelism, layering
Libraries
Using, building, and documenting reusable concurrent classes
Concurrent Programming in Java
3
About These Slides ...
Some slides are based on joint presentations with David Holmes,
Macquarie University, Sydney Australia.
More extensive coverage of most topics can be found in the book
Concurrent Programming in Java
, Addison-Wesley
and the online supplement
http://gee.cs.oswego.edu/dl/cpj
The printed slides contain much more material than can be covered
in a tutorial. They include extra backgound, examples, and
extensions. They are not always in presentation order.
Java code examples often omit qualifiers, imports, etc for space
reasons. Full versions of most examples are available from the
CPJ online supplement.
None of this material should be construed as official Sun
information.
Java is a trademark of Sun Microsystems, Inc.
Concurrent Programming in Java
4
Concurrency
Why?
Availability
Minimize response lag, maximize throughput
Modelling
Simulating autonomous objects, animation
Parallelism
Exploiting multiprocessors, overlapping I/O
Protection
Isolating activities in threads
Why Not?
Complexity
Dealing with safety, liveness, composition
Overhead
Higher resource usage
Concurrent Programming in Java
5
Common Applications
I/O-bound tasks
• Concurrently access web pages, databases, sockets ...
GUIs
• Concurrently handle events, screen updates
Hosting foreign code
• Concurrently run applets, JavaBeans, ...
Server Daemons
• Concurrently service multiple client requests
Simulations
• Concurrently simulate multiple real objects
Common examples
• Web browsers, web services, database servers,
programming development tools, decision support tools
剩余214页未读,继续阅读
资源评论
- shadow131472014-07-16一本好书,对我很有帮助
- lei_x52014-01-28关于Java并行最好的一本书!
cxzav
- 粉丝: 4
- 资源: 85
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功