没有合适的资源?快使用搜索试试~ 我知道了~
Java Threads and the Concurrency Utilities 无水印pdf
需积分: 10 11 下载量 152 浏览量
2017-09-30
23:21:05
上传
评论 1
收藏 898KB PDF 举报
温馨提示
试读
208页
Java Threads and the Concurrency Utilities 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
资源推荐
资源详情
资源评论
9781484 216996
52499
ISBN 978-1-4842-1699-6
SOURCE CODE ONLINE
US $24.99
Shelve in:
Programming Languages/Java
User level:
Intermediate–Advanced
www.apress.com
Friesen Java Threads and the Concurrency Utilities
Java Threads
and the
Concurrency
Utilities
FOR PROFESSIONALS BY PROFESSIONALS® THE EXPERT’S VOICE® IN JAVA
Java Threads and the Concurrency Utilities
Java’s thread APIs and concurrency utilities are among its most powerful and challenging
APIs and language features. Java beginners typically find it very difficult to use these features
to write correct multithreaded applications. Java Threads and the Concurrency Utilities helps
all Java developers master and use these capabilities effectively.
This book is divided into two parts of four chapters each. Part 1 focuses on the low-level
Thread APIs and Part 2 focuses on the high-level concurrency utilities. In Part 1, you learn
about Thread API basics, synchronization, waiting and notification, and the additional capa-
bilities of thread groups, thread local variables, and the Timer Framework. In Part 2, you learn
about concurrency utilities basics, executors, synchronizers, the Locking Framework, and the
additional capabilities of concurrent collections, atomic variables, the Fork/Join Framework,
and completion services.
Each chapter ends with select exercises designed to challenge your grasp of the chapter’s
content. An appendix provides the answers to these exercises. A second appendix explores
how threads are used by the Swing Graphical User Interface Toolkit.
•
Create, configure, and start threads that execute runnables
•
Synchronize shared code to avoid race conditions, data races, and more
•
Avoid problems with cached variables
•
Use waiting and notification to coordinate execution between multiple threads
•
Discover thread groups and learn why you should avoid them
•
Learn about thread-local variables
•
Explore the Timer Framework
•
Find out why the concurrency utilities were introduced
•
Explore executors, synchronizers, and the Locking Framework
•
Discover concurrent collections, atomic variables, the Fork/Join Framework, and
completion services
•
Examine Swing’s use of threads and its thread-related APIs
—
Jef f Friesen
Related Titles
Java Threads and
the Concurrency
Utilities
Jeff Friesen
Java Threads and the Concurrency Utilities
Copyright © 2015 by Jeff Friesen
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part
of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission
or information storage and retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are
brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for
the purpose of being entered and executed on a computer system, for exclusive use by the purchaser
of the work. Duplication of this publication or parts thereof is permitted only under the provisions
of the Copyright Law of the Publisher’s location, in its current version, and permission for use must
always be obtained from Springer. Permissions for use may be obtained through RightsLink at the
Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law.
ISBN-13 (pbk): 978-1-4842-1699-6
ISBN-13 (electronic): 978-1-4842-1700-9
Trademarked names, logos, and images may appear in this book. Rather than use a trademark
symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and
images only in an editorial fashion and to the benefit of the trademark owner, with no intention of
infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they
are not identified as such, is not to be taken as an expression of opinion as to whether or not they are
subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal responsibility
for any errors or omissions that may be made. The publisher makes no warranty, express or implied,
with respect to the material contained herein.
Managing Director: Welmoed Spahr
Lead Editor: Steve Anglin
Technical Reviewer: Sumit Pal
Editorial Board: Steve Anglin, Louise Corrigan, James T. DeWolf, Jonathan Gennick,
Robert Hutchinson, Michelle Lowman, James Markham, Susan McDermott,
Matthew Moodie, Jerey Pepper, Douglas Pundick, Ben Renow-Clarke, Gwenan Spearing
Coordinating Editor: Mark Powers
Copy Editor: Kezia Endsley
Compositor: SPi Global
Indexer: SPi Global
Artist: SPi Global
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail
orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC
and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc).
SSBM Finance Inc. is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit www.apress.com.
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional
use. eBook versions and licenses are also available for most titles. For more information, reference
our Special Bulk Sales–eBook Licensing web page at www.apress.com/bulk-sales.
Any source code or other supplementary materials referenced by the author in this text is available
to readers at www.apress.com/9781484216996. For detailed information about how to locate your
book’s source code, go to www.apress.com/source-code/. Readers can also access source code at
SpringerLink in the Supplementary Material section for each chapter.
To my sister and her family.
v
Contents at a Glance
About the Author ������������������������������������������������������������������������������ xi
About the Technical Reviewer �������������������������������������������������������� xiii
Acknowledgments ��������������������������������������������������������������������������� xv
Introduction ����������������������������������������������������������������������������������� xvii
■Part I: Thread APIs ���������������������������������������������������������� 1
■Chapter 1: Threads and Runnables ������������������������������������������������� 3
■Chapter 2: Synchronization ���������������������������������������������������������� 21
■Chapter 3: Waiting and Notification ���������������������������������������������� 39
■Chapter 4: Additional Thread Capabilities ������������������������������������ 51
■Part II: Concurrency Utilities ���������������������������������������� 67
■Chapter 5: Concurrency Utilities and Executors ��������������������������� 69
■Chapter 6: Synchronizers ������������������������������������������������������������� 83
■Chapter 7: The Locking Framework�������������������������������������������� 107
■Chapter 8: Additional Concurrency Utilities ������������������������������� 125
■Part III: Appendices ���������������������������������������������������� 147
■Appendix A: Answers to Exercises ��������������������������������������������� 149
■Appendix B: Threading in Swing ������������������������������������������������ 169
Index ���������������������������������������������������������������������������������������������� 195
剩余207页未读,继续阅读
资源评论
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功