南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)07 Java并发编程 Concurrent Programming in Java

Concurrent Programming in Java Java并发编程 Institute of Computer Software 2022-2-27 Nanjing University
Java并发编程 Concurrent Programming in Java 2022-2-27 Institute of Computer Software Nanjing University 1

&雪扇 摘要 0o2 UNIVER 2 Java1.5并发工具包介绍 口实例 Institute of Computer Software 2022-2-27 Nanjing University
摘要 Java 1.5 并发工具包介绍 实例 2022-2-27 Institute of Computer Software Nanjing University 2

&扇 Java并发编程机制 1902 3 口Pre Java1.5 Thread,Runnable ▣synchronized wait,notify,notifyAll Institute of Computer Software 2022-2-27 Nanjing University
Java 并发编程机制 Pre Java 1.5 Thread, Runnable synchronized wait, notify, notifyAll 2022-2-27 Institute of Computer Software Nanjing University 3

Java 1.5 Concurrency Utilities Java 1.5 has comprehensive support for general-purpose concurrent programming The support is partitioned into three packages: java.util.concurrent this provides various classes to support common concurrent programming paradigms,e.g.,support for various queuing policies such as bounded buffers,sets and maps,thread pools etc java.util.concurrent.atomic this provides support for lock-free thread-safe programming on simple variables such as atomic integers,atomic booleans,etc. java.util.concurrent.locks this provides a framework for various locking algorithms that augment the Java language mechanisms, e.g.,read -write locks and condition variables. Institute of Computer Software 2022-2-27 Nanjing University
Java 1.5 Concurrency Utilities Java 1.5 has comprehensive support for general-purpose concurrent programming The support is partitioned into three packages: java.util.concurrent - this provides various classes to support common concurrent programming paradigms, e.g., support for various queuing policies such as bounded buffers, sets and maps, thread pools etc java.util.concurrent.atomic - this provides support for lock-free thread-safe programming on simple variables such as atomic integers, atomic booleans, etc. java.util.concurrent.locks - this provides a framework for various locking algorithms that augment the Java language mechanisms, e.g., read -write locks and condition variables. 2022-2-27 Institute of Computer Software Nanjing University 4

&扇 Java并发编程机制 UNIVE 5 Java 1.5+Concurrent Utilities ▣Why? 口What'snew2 ▣How to use? Let's“'listen to”some famous speech! Institute of Computer Software 2022-2-27 Nanjing University
Java 并发编程机制 Java 1.5+ Concurrent Utilities Why? What' s new? How to use? 2022-2-27 Institute of Computer Software Nanjing University 5 Let’s “listen to” some famous speech!

JavaOne Sun's 2004 Worldwide Java Developer Conference- Concurrency Utilities in JDK 1.5 (Tiger) java.sun.com/javaone/sf Multithreading made simple(r) David Holmes Director,DLTeCH Pty Ltd Java Brian Goetz Principal Consultant,Quiotix Corp Sun
2022-2-27 Institute of Computer Software Nanjing University 6

What This Talk Is About How to use the new concurrency utilities (the java.util.concurrent package) to replace error-prone or inefficient code and to better structure applications
2022-2-27 Institute of Computer Software Nanjing University 7

Speakers -David Holmes is a regular speaker on concurrent programming in Java,co- author of The Java Programming Language 3rd Ed.and a member of the JSR 166 Expert Group -Brian Goetz is author of over 50 articles on Java development and a member of the JSR 166 Expert Group
2022-2-27 Institute of Computer Software Nanjing University 8

Rationale for JSR 166 Developing concurrent classes is too hard The built-in concurrency primitives-wait () notify ()and synchronized-are,well, primitive ·Hard to use correctly Easy to use incorrectly Specified at too low a level for most applications . Can lead to poor performance if used in correctly Too much wheel-reinventing!
2022-2-27 Institute of Computer Software Nanjing University 9

Goals for JSR 166 Simplify development of concurrent applications Do for concurrency what the Collections framework did for data structures! Provide a set of basic concurrency building blocks that can be widely reused Enhance scalability,performance,readability, maintainability,and thread-safety of concurrent Java applications
2022-2-27 Institute of Computer Software Nanjing University 10
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)06 并发对象 Concurrent Objects.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)05 异常处理 Exception Handling.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)04 契约式设计 Design by Contract.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)03 类和对象 Class and Object.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)02 抽象数据类型 Abstract Data Types.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)01 Introduction(主讲:余萍).ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第16讲 信息系统应用.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第15讲 信息系统管理.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第14讲 实现与测试.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第13讲 系统设计实践(小区物业管理系统).ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第12讲 详细设计(下)界面设计.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第11讲 详细设计(中)数据库设计.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第10讲 详细设计(上).ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第09讲 体系结构设计.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第08讲 需求建模与总结.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第07讲 需求分析实践.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第06讲 需求分析.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第05讲 领域分析.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第04讲 信息系统规划.ppt
- 西安石油大学计算机学院:《信息系统分析与设计 Information System Analysis and Design》课程教学资源(PPT课件)第03讲 信息系统建设.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)08 对象序列化和持久化 Serialization and Persistence.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)09 面向对象的分析与设计简介 OOA & OOD:An introduction.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)10 敏捷软件开发 Agile Software Development.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)11 设计模式 Design Patterns(1).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)12 设计模式 Design Patterns(2).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)13 设计模式 Design Patterns(3).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)14 模式和框架 Pattern and Framework.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)15 面向方面的编程 Aspect Oriented Programming(AOP).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)16 构件化软件 Component Software.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)17 分布对象 Distributed Objects(1).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)18 分布对象 Distributed Objects(2).ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)19 复习和总结 Object-Oriented Technology:Review and Conclusion Remarks.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)实习项目概述.ppt
- 南京大学:《面向对象技术 OOT》课程教学资源(实习指南)医院预约挂号系统.docx
- 南京大学:《面向对象技术 OOT》课程教学资源(PPT课件讲稿)OOT实习指南.pptx
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)33 O-O programming and Ada.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)06 Abstract data types.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)27 Object-oriented analysis.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)E Bibliography.pdf
- 南京大学:《面向对象技术 OOT》课程教学资源(教材电子版)07 The static structure:classes.pdf