projet-donnees-reparties/linda/search/basic/Main.java

19 lines
496 B
Java
Raw Normal View History

2021-11-27 16:50:33 +00:00
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();
}
}