P1 Finished (Uncommented)
This commit is contained in:
parent
828a66632a
commit
d3658b16e7
@ -12,8 +12,8 @@ public class P1 {
|
||||
* Student Number: c3262201
|
||||
*/
|
||||
|
||||
LinkedList<P1_War> WARs = new LinkedList<P1_War>();
|
||||
LinkedList<Thread> threads = new LinkedList<Thread>();
|
||||
LinkedList<P1_War> WARs = new LinkedList<P1_War>(); //Holds the WARs
|
||||
LinkedList<Thread> threads = new LinkedList<Thread>(); //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++)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user