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