Java Threads

Free Download

Authors:

Edition: 2nd ed

Series: The Java series

ISBN: 9781565924185, 1-56592-418-5

Size: 1 MB (1318345 bytes)

Pages: 219/219

File format:

Language:

Publishing Year:

Category:

Scott Oaks, Henry Wong9781565924185, 1-56592-418-5

Revised and expanded to cover Java 2, Java Threads shows you how to take full advantage of Java’s thread facilities: where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes. It thoroughly covers the Thread and ThreadGroup classes, the Runnable interface, and the language’s synchronized operator. The books pays special attention to threading issues with Swing as well as problems like deadlock, race condition, and starvation, to help you write code without hidden bugs. In addition, Java Threads shows you how to extend Java’s thread primitives. A thorough discussion of thread scheduling concludes by developing a CPUSchedule class that shows you how to implement your own scheduling policy. Other extended examples include classes that implement reader/writer locks, general locks, locks at arbitrary scope, and asynchronous I/O. In short, Java Threads covers everything you need to know about threads, from the simplest animation applet to the most complex applications. If you plan to do any serious work in Java, you will find this book invaluable. Examples available online.

Table of contents :
Table of Contents……Page 3
Preface……Page 6
1. Introduction to Threading……Page 10
2. The Java Threading API……Page 17
3. Synchronization Techniques……Page 36
4. Wait and Notify……Page 55
5. Useful Examples of Java Thread Programming……Page 69
6. Java Thread Scheduling……Page 92
7. Java Thread Scheduling Examples……Page 122
8. Advanced Synchronization Topics……Page 142
9. Parallelizing for Multiprocessor Machines……Page 167
10. Thread Groups……Page 194
A. Miscellaneous Topics……Page 208
B. Exceptions and Errors……Page 214
Colophon……Page 219

Reviews

There are no reviews yet.

Be the first to review “Java Threads”
Shopping Cart
Scroll to Top