Java Threads

ISBN-10: 0596007825

ISBN-13: 9780596007829

Edition: 3rd 2004

List price: $39.95 Buy it from $23.69
eBook available
30 day, 100% satisfaction guarantee

If an item you ordered from TextbookRush does not meet your expectations due to an error on our part, simply fill out a return request and then return it by mail within 30 days of ordering it for a full refund of item cost.

Learn more about our returns policy


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 that make the task of writing multithreaded programs that much easier. You'll learn where to use threads to increase efficiency, how to use them effectively, and how to avoid common mistakes. This book discusses problems like deadlock, race conditions, and starvation in detail, helping you to write code without hidden bugs. "Java Threads, Third Edition, has been thoroughly expanded and revised. It incorporates the concurrency utilities from java.util.concurrent throughout. New chapters cover thread performance, using threads with Swing, threads and Collection classes, thread pools, and threads and I/O (traditional, new, and interrupted). Developers who cannot yet deploy J2SE 5.0 can use thread utilities provided in the Appendix to achieve similar functionality with earlier versions of Java. Topics include: Lock starvation and deadlock detection Atomic classes and minimal synchronization (J2SE 5.0) Interaction of Java threads with Swing, I/O, and Collection classes Programmatically controlled locks and condition variables (J2SE 5.0) Thread performance and security Thread pools (J2SE 5.0) Thread groups Platform-specific thread scheduling Task schedulers (J2SE 5.0) Parallelizing loops for multiprocessor machines In short, this new edition of "Java Threads covers everything you need to know about threads, from the simplest animation program to the most complex applications. If you plan to do any serious work in Java, you will find this book invaluable. Scott Oaks is a senior software engineer for the Java Performance Engineering group at Sun Microsystems and the author of four books in the O'Reilly Java series. Formerly a senior systems engineer at Sun Microsystems, Henry Wong is an independent consultant working on various Java related projects.
New Starting from $30.02
eBooks Starting from $31.99
Rent eBooks
Buy eBooks
what's this?
Rush Rewards U
Members Receive:
You have reached 400 XP and carrot coins. That is the daily max!
Study Briefs

Limited time offer: Get the first one free! (?)

All the information you need in one place! Each Study Brief is a summary of one specific subject; facts, figures, and explanations to help you learn faster.

Add to cart
Study Briefs
SQL Online content $4.95 $1.99
Add to cart
Study Briefs
MS Excel® 2010 Online content $4.95 $1.99
Add to cart
Study Briefs
MS Word® 2010 Online content $4.95 $1.99
Add to cart
Study Briefs
MS PowerPoint® 2010 Online content $4.95 $1.99
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: 362
Size: 7.25" wide x 9.50" long x 1.00" tall
Weight: 1.672
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 small software company in 1986 working on SCSI device drivers, image and audio data compression, and graphics tools used for a medical information system. When not in front of a computer, Henry is an instrument rated private pilot, who also likes to dabble in archery, cooking, and traveling to different places with his wife, Nini.

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
Free shipping on orders over $35*

*A minimum purchase of $35 is required. Shipping is provided via FedEx SmartPost® and FedEx Express Saver®. Average delivery time is 1 – 5 business days, but is not guaranteed in that timeframe. Also allow 1 - 2 days for processing. Free shipping is eligible only in the continental United States and excludes Hawaii, Alaska and Puerto Rico. FedEx service marks used by permission."Marketplace" orders are not eligible for free or discounted shipping.

Learn more about the TextbookRush Marketplace.