projet-donnees-reparties/linda/search/basic/Main.java
2021-11-27 17:50:33 +01:00

19 lines
496 B
Java

package linda.search.basic;
import linda.*;
public class Main {
public static void main(String args[]) {
if (args.length != 2) {
System.err.println("linda.search.basic.Main search file.");
return;
}
Linda linda = new linda.shm.CentralizedLinda();
Manager manager = new Manager(linda, args[1], args[0]);
Searcher searcher = new Searcher(linda);
(new Thread(manager)).start();
(new Thread(searcher)).start();
}
}