All pastes #394233 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-03-14 03:42 UTC
rendered paste body
	public synchronized void pause()	{		statut = Thread.State.BLOCKED;		try		{			while(statut == Thread.State.BLOCKED)				wait();		}		catch(InterruptedException e)		{}	}		public synchronized void arreter()	{		statut = Thread.State.TERMINATED;		notify();	}		public synchronized void relancer()	{		statut = Thread.State.RUNNABLE;		notify();	}