Sale!

JAVA Threads

$19.99 $8.99

Table of Contents

Preface 1
1. Introduction to Threading 5
Java Terms
Thread Overview
Why Threads?
Summary
2. The Java Threading API 12
Threading Using the Thread Class
Threading Using the Runnable Interface
The Life Cycle of a Thread
Thread Naming
Thread Access
More on Starting, Stopping, and Joining
Summary
3. Synchronization Techniques 31
A Banking Example
Reading Data Asynchronously
A Class to Perform Synchronization
The Synchronized Block
Nested Locks
Deadlock
Return to the Banking Example
Synchronizing Static Methods
Summary
4. Wait and Notify 50
Back to Work (at the Bank)
Wait and Notify
wait(), notify(), and notifyAll()
wait() and sleep()
Thread Interruption
Static Methods (Synchronization Details)
Summary
5. Useful Examples of Java Thread Programming 64
Data Structures and Containers
Simple Synchronization Examples
A Network Server Class
The AsyncInputStream Class
Using TCPServer with AsyncInputStreams
Summary
6. Java Thread Scheduling 87
An Overview of Thread Scheduling
When Scheduling Is Important
Scheduling with Thread Priorities
Popular Scheduling Implementations
Native Scheduling Support
Other Thread-Scheduling Methods
Summary

7. Java Thread Scheduling Examples 117
Thread Pools
Round-Robin Scheduling
Job Scheduling
Summary
8. Advanced Synchronization Topics 137
Synchronization Terms
Preventing Deadlock
Lock Starvation
Thread-Unsafe Classes
Summary
9. Parallelizing for Multiprocessor Machines 162
Parallelizing a Single-Threaded Program
Inner-Loop Threading
Loop Printing
Multiprocessor Scaling
Summary
10. Thread Groups 189
Thread Group Concepts
Creating Thread Groups
Thread Group Methods
Manipulating Thread Groups
Thread Groups, Threads, and Security
Summary
A. Miscellaneous Topics 203
B. Exceptions and Errors 209
Colophon 214

In stock

SKU: ISBN 978-8173660573

Description

Publisher: Oreilly & Associates Inc; Second Edition edition (1999)
Language: English
ISBN-10: 8173660573
ISBN-13: 978-8173660573
Product Dimensions: 9.4 x 6.9 x 0.6 inches
Shipping Weight: 1.7 pounds

Additional information

Weight 1.7 lbs
Dimensions 9.4 x 6.9 x 0.6 in

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.