Skip to content

Java Threads

Spend $50 to get a free DVD!

ISBN-10: 0596007825

ISBN-13: 9780596007829

Edition: 3rd 2004

Authors: Scott Oaks, Henry Wong

List price: $39.95
Blue ribbon 30 day, 100% satisfaction guarantee!
Rent eBooks
Buy eBooks
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition of the classic "Java Threads shows you how to take full advantage of Java's threading facilities and brings you up-to-date with the watershed changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming. Java's threading system is simple relative to other threading systems. In earlier versions of Java, this simplicity came with tradeoffs: some of the advanced features in other threading systems were not available in Java. J2SE 5.0 changes all that: it provides a large number of new thread-related classes…    
Customers also bought

Book details

List price: $39.95
Edition: 3rd
Copyright year: 2004
Publisher: O'Reilly Media, Incorporated
Publication date: 9/20/2004
Binding: Paperback
Pages: 358
Size: 7.09" wide x 9.37" long x 0.74" tall
Weight: 1.496
Language: English

Scott Oaks is an architect at Oracle Corporation, where he works on the performance of Oracle’s middleware software. Prior to joining Oracle, he worked for years at Sun Microsystems, specializing in many disparate technologies from the SunOS kernel to network programming and RPCs to windows systems and the OPEN LOOK Virtual Window Manager. In 1996, Scott became a Java evangelist for Sun and in 2001 joined their Java Performance group--which has been his primary focus ever since. Scott also authored O’Reilly’s Java Security, Java Threads, JXTA in a Nutshell, and Jini in a Nutshell titles.

Henry Wong is an independent consultant, involved in various Java related projects. Henry previously workedas a computer engineer at Sun Microsystems from 1989to 2003. Originally hired as a consultant to help customers with special device drivers, kernel modifications, and DOS interoperability products, Henry has also worked on Solaris ports, performance tuning projects, and multithreaded design and implementations for benchmarks and demos. Since early 1995, Henry has been involved in developing Java prototypes and supporting customers who are usingJava. Prior to working at Sun, Henry earned a Bachelor of Science degree in chemical engineering from The Cooper Union in 1987. He joined a…    

Introduction to Threads
Java Terms
About the Examples
Why Threads?
Thread Creation and Management
What Is a Thread?
Creating a Thread
The Lifecycle of a Thread
Two Approaches to Stopping a Thread
The Runnable Interface
Threads and Objects
Data Synchronization
The Synchronized Keyword
The Volatile Keyword
More on Race Conditions
Explicit Locking
Lock Scope
Choosing a Locking Mechanism
Nested Locks
Lock Fairness
Thread Notification
Wait and Notify
Condition Variables
Minimal Synchronization Techniques
Can You Avoid Synchronization?
Atomic Variables
Thread Local Variables
Advanced Synchronization Topics
Synchronization Terms
Synchronization Classes Added in J2SE 5.0
Preventing Deadlock
Deadlock Detection
Lock Starvation
Threads and Swing
Swing Threading Restrictions
Processing on the Event-Dispatching Thread
Using invokeLater() and invokeAndWait()
Long-Running Event Callbacks
Threads and Collection Classes
Overview of Collection Classes
Synchronization and Collection Classes
The Producer/Consumer Pattern
Using the Collection Classes
Thread Scheduling
An Overview of Thread Scheduling
Scheduling with Thread Priorities
Popular Threading Implementations
Thread Pools
Why Thread Pools?
Using a Thread Pool
Queues and Sizes
Thread Creation
Callable Tasks and Future Results
Single-Threaded Access
Task Scheduling
Overview of Task Scheduling
The java.util. Timer Class
The javax.swing. Timer Class
The ScheduledThreadPoolExecutor Class
Threads and I/O
A Traditional I/O Server
A New I/O Server
Interrupted I/O
Miscellaneous Thread Topics
Thread Groups
Threads and Java Security
Daemon Threads
Threads and Class Loading
Threads and Exception Handling
Threads, Stacks, and Memory Usage
Thread Performance
Overview of Performance
Synchronized Collections
Atomic Variables and Contended Synchronization
Thread Creation and Thread Pools
Parallelizing Loops for Multiprocessor Machines
Parallelizing a Single-Threaded Program
Multiprocessor Scaling
Superseded Threading Utilities