www.pudn.com > philopher.rar > Main.java
public class Main{
public static Semaphore[] fork=new Semaphore[5];
public static void main(String args[])
{
for (int i=0;i<5;i++)
{
fork[i]=new Semaphore(1);
}
for(int j=4;j>=0;j--)
{
new Philopher(j).start();
}
}
}