当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

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

资源类别:文库,文档格式:PPT,文档页数:69,文件大小:4.77MB,团购合买
Java 1.5 并发工具包介绍 实例
点击下载完整版文档(PPT)

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

点击下载完整版文档(PPT)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共69页,可试读20页,点击继续阅读 ↓↓
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有