-
Notifications
You must be signed in to change notification settings - Fork 0
/
part1.txt
26 lines (23 loc) · 1.33 KB
/
part1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Yariel Mercado yariel.mercado1@uprm.edu
In the terminal, the program initializes the amount of threads the user passes as input to the command line. The
program declares it's starting up, and prints out a confirmation that each thread is being created. If no input is
passed for the amount of threads, it defaults to creating five threads. Once each thread is initialized, the program
confirms it's done and begins running the threads. Since the threads are in an Array List, it displays the threads
according to their index, in some random order. Since the threads aren't iterating over the Circular Linked List,
any value passed as the termination limit (number of iterations the program will perform over the CLL), won't have
an effect on the output for this first part. Simply put, the program initializes the threads and runs each thread once.
For example, when running `java prj_01/RRScheduler -p 6 -t 3 -s 1`, one such output is:
Starting Program...
Creating Thread 1
Creating Thread 2
Creating Thread 3
Creating Thread 4
Creating Thread 5
Creating Thread 6
Main Finished ... Bye Bye
Running Thread... This is Thread 1
Running Thread... This is Thread 2
Running Thread... This is Thread 4
Running Thread... This is Thread 0
Running Thread... This is Thread 3
Running Thread... This is Thread 5