Description

Book Synopsis
Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition shows you how to take advantage of Java's threading facilities and brings you up-to-date with the changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming.

Trade Review
If you are a Java programmer and you are thinking of using threads to make your work more responsive or even faster given todays symmetric multiprocessing hardware, then this is an excellent book. It probably isnt academic enough for use in formal education but as a practical guide to how not to do things, and hopefully how to do things better, it is excellent. - Harry Fairhead, VSJ, May 2005

Table of Contents
Preface 1. Introduction to Threads Java Terms About the Examples Why Threads? 2. 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 3. Data Synchronization The Synchronized Keyword The Volatile Keyword More on Race Conditions Explicit Locking Lock Scope Choosing a Locking Mechanism Nested Locks Deadlock Lock Fairness 4. Thread Notification Wait and Notify Condition Variables 5. Minimal Synchronization Techniques Can You Avoid Synchronization? Atomic Variables Thread Local Variables 6. Advanced Synchronization Topics Synchronization Terms Synchronization Classes Added in J2SE 5.0 Preventing Deadlock Deadlock Detection Lock Starvation 7. Threads and Swing Swing Threading Restrictions Processing on the Event-Dispatching Thread Using invokeLater( ) and invokeAndWait( ) Long-Running Event Callbacks 8. Threads and Collection Classes Overview of Collection Classes Synchronization and Collection Classes The Producer/Consumer Pattern Using the Collection Classes 9. Thread Scheduling An Overview of Thread Scheduling Scheduling with Thread Priorities Popular Threading Implementations 10. Thread Pools Why Thread Pools? Executors Using a Thread Pool Queues and Sizes Thread Creation Callable Tasks and Future Results Single-Threaded Access 11. Task Scheduling Overview of Task Scheduling The java.util.Timer Class The javax.swing.Timer Class The ScheduledThreadPoolExecutor Class 12. Threads and I/O A Traditional I/O Server A New I/O Server Interrupted I/O 13. Miscellaneous Thread Topics Thread Groups Threads and Java Security Daemon Threads Threads and Class Loading Threads and Exception Handling Threads, Stacks, and Memory Usage 14. Thread Performance Overview of Performance Synchronized Collections Atomic Variables and Contended Synchronization Thread Creation and Thread Pools 15. Parallelizing Loops for Multiprocessor Machines Parallelizing a Single-Threaded Program Multiprocessor Scaling Appendix: Superseded Threading Utilities Index

Java Threads 3e

    Product form

    £23.99

    Includes FREE delivery

    RRP £31.99 – you save £8.00 (25%)

    Order before 4pm today for delivery by Wed 5 Aug 2026.

    A Paperback / softback by Scott Oaks, Henry Wong

    Out of stock

      Trusted by thousands of customers. See 2,385+ Customer Reviews

      View other formats and editions of Java Threads 3e by Scott Oaks

      Publisher: O'Reilly Media
      Publication Date: Publication Date: 19/10/2004
      ISBN13: 9780596007829, 978-0596007829
      ISBN10: 0596007825

      Description

      Book Synopsis
      Threads are essential to Java programming, but learning to use them effectively is a nontrivial task. This new edition shows you how to take advantage of Java's threading facilities and brings you up-to-date with the changes in Java 2 Standard Edition version 5.0 (J2SE 5.0). It provides a thorough, step-by-step approach to threads programming.

      Trade Review
      If you are a Java programmer and you are thinking of using threads to make your work more responsive or even faster given todays symmetric multiprocessing hardware, then this is an excellent book. It probably isnt academic enough for use in formal education but as a practical guide to how not to do things, and hopefully how to do things better, it is excellent. - Harry Fairhead, VSJ, May 2005

      Table of Contents
      Preface 1. Introduction to Threads Java Terms About the Examples Why Threads? 2. 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 3. Data Synchronization The Synchronized Keyword The Volatile Keyword More on Race Conditions Explicit Locking Lock Scope Choosing a Locking Mechanism Nested Locks Deadlock Lock Fairness 4. Thread Notification Wait and Notify Condition Variables 5. Minimal Synchronization Techniques Can You Avoid Synchronization? Atomic Variables Thread Local Variables 6. Advanced Synchronization Topics Synchronization Terms Synchronization Classes Added in J2SE 5.0 Preventing Deadlock Deadlock Detection Lock Starvation 7. Threads and Swing Swing Threading Restrictions Processing on the Event-Dispatching Thread Using invokeLater( ) and invokeAndWait( ) Long-Running Event Callbacks 8. Threads and Collection Classes Overview of Collection Classes Synchronization and Collection Classes The Producer/Consumer Pattern Using the Collection Classes 9. Thread Scheduling An Overview of Thread Scheduling Scheduling with Thread Priorities Popular Threading Implementations 10. Thread Pools Why Thread Pools? Executors Using a Thread Pool Queues and Sizes Thread Creation Callable Tasks and Future Results Single-Threaded Access 11. Task Scheduling Overview of Task Scheduling The java.util.Timer Class The javax.swing.Timer Class The ScheduledThreadPoolExecutor Class 12. Threads and I/O A Traditional I/O Server A New I/O Server Interrupted I/O 13. Miscellaneous Thread Topics Thread Groups Threads and Java Security Daemon Threads Threads and Class Loading Threads and Exception Handling Threads, Stacks, and Memory Usage 14. Thread Performance Overview of Performance Synchronized Collections Atomic Variables and Contended Synchronization Thread Creation and Thread Pools 15. Parallelizing Loops for Multiprocessor Machines Parallelizing a Single-Threaded Program Multiprocessor Scaling Appendix: Superseded Threading Utilities Index

      Recently viewed products

      © 2026 Book Curl

        • American Express
        • Apple Pay
        • Diners Club
        • Discover
        • Google Pay
        • Maestro
        • Mastercard
        • PayPal
        • Shop Pay
        • Union Pay
        • Visa

        Login

        Forgot your password?

        Don't have an account yet?
        Create account