![JAR search and dependency download from the Maven repository](/logo.png)
jadex.micro.philosophers.thread.Main Maven / Gradle / Ivy
The newest version!
package jadex.micro.philosophers.thread;
public class Main
{
public static void main(String[] args)
{
int n=5;
Table t = new Table(n,true);
TableGui gui = new TableGui(n, t);
for(int i=0; i<5; i++)
{
final int no = i;
Thread p = new Thread(new Philosopher(no, t));
p.start();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy