Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

More responsive programs
More complex design
Context Switching Overhead
Increased Resource Consumption
Thread Subclass
Runnable implemention
Subclass or Runnable?
Common Pitfall: Calling run() instead of start()
Thread Names
A Thread Example
Race Conditions & Critical Sections
Local Variables
Local Object References
Object Members
The Thread Control Escape Rule
The Reference is not Thread Safe!
The Java synchronized Keyword
Synchronized Instance Methods
Synchronized Static Methods
Synchronized Blocks in Instance Methods
Synchronized Blocks in Static Methods
Java Synchronized Example
Signaling via Shared Objects
Busy Wait
wait(), notify() and notifyAll()
Missed Signals
Spurious Wakeups
Multiple Threads Waiting for the Same Signals
Don't call wait() on constant String's or global objects
Lock Ordering
Lock Timeout
Deadlock Detection
Causes of Starvation in Java
Implementing Fairness in Java
A More Realistic Example
Nested Monitor Lockout vs. Deadlock
A Simple Lock
Lock Reentrance
Lock Fairness
Calling unlock() From a finally-clause
Read / Write Lock Java Implementation
Read / Write Lock Reentrance
Read Reentrance
Write Reentrance
Read to Write Reentrance
Write to Read Reentrance
Fully Reentrant ReadWriteLock
Simple Semaphore
Using Semaphores for Signaling
Counting Semaphore
Bounded Semaphore
Using Semaphores as Locks
Blocking Queue Implementation
Access Condition
State Changes
Notification Strategy
Test and Set Method
Set Method
0 of .
Results for:
No results containing your search query
P. 1
Java Concurrency

Java Concurrency

Ratings: (0)|Views: 16|Likes:
Published by Farhan Faruque
Java concurrency
Java concurrency

More info:

Published by: Farhan Faruque on May 13, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 4 to 41 are not shown in this preview.
You're Reading a Free Preview
Pages 45 to 102 are not shown in this preview.
You're Reading a Free Preview
Pages 106 to 123 are not shown in this preview.
You're Reading a Free Preview
Pages 127 to 134 are not shown in this preview.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->