package TestIngresso;
 
public class AlternatingProtocol {
 
	public synchronized void P() {
		try {
			wait();
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
 
	public synchronized void V() {
		notify();
	}
 
}