diff --git a/Code/P1.java b/Code/P1.java index aa0e4bb..73f7a38 100644 --- a/Code/P1.java +++ b/Code/P1.java @@ -12,8 +12,8 @@ public class P1 { * Student Number: c3262201 */ - LinkedList WARs = new LinkedList(); - LinkedList threads = new LinkedList(); + LinkedList WARs = new LinkedList(); //Holds the WARs + LinkedList threads = new LinkedList(); //For holding threads Semaphore intersection = new Semaphore(1, true); int[] tracks = new int[2]; @@ -31,7 +31,7 @@ public class P1 { { tracks[0]=0; tracks[1]=0; - + readFile("../P1-1in.txt"); //Create thread for each war for(int i = 0; i < WARs.size(); i++)