From d3658b16e7acc8eac77b6b81fb209cd73c9706c1 Mon Sep 17 00:00:00 2001 From: Zach Date: Wed, 29 Sep 2021 14:10:07 +1000 Subject: [PATCH] P1 Finished (Uncommented) --- Code/P1.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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++)