.NET
jdead.txt
Associated article: Java Deadlock
Tags: .NET
Published code accompanying the by Allan Vermeulen in which he discuses Java deadlock--a nasty problem where a program simply stops executing because all threads are waiting for a resource that will never become available. Allan examines Java deadlock, and shows how it can be prevented. Also see JDEAD.ZIP.
_Java Deadlock_
by Allan Vermeulen
Listing One
public class Resource implements Runnable {
private Resource boss_; // a property
public void setBoss(Resource boss) {boss_=boss;}
public Resource getBoss() {return boss_;}
public synchronized void assignProject() {pause();}
public synchronized void receiveProject() {}
public synchronized ...


