Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

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
More Complicated Deadlocks
Database Deadlocks
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
State
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: 243|Likes:
Published by Farhan Faruque
Java concurrency
Java concurrency

More info:

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

Availability:

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

05/14/2014

pdf

text

original

You're Reading a Free Preview
Pages 6 to 134 are not shown in this preview.

You're Reading a Free Preview

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