TD1: Initial commit of exercice 3 code.
[TD_SR.git] / TD1 / exo3 / Main.java
1
2 import java.util.ArrayList;
3
4
5 public class Main {
6
7
8 public static void main (String[] args) {
9 BufferCirc b = new BufferCirc(20);
10 Producteur p = new Producteur(b);
11 Consommateur c = new Consommateur(b);
12 Thread P1 = new Thread(p);
13 P1.setName("P1");
14 Thread C1 = new Thread(c);
15 C1.setName("C1");
16 P1.start();
17 C1.start();
18 }
19
20 }