Difference between revisions of "Scheduler Client Assignment"

From CSE231 Wiki
Jump to navigation Jump to search
Line 9: Line 9:
 
{{CodeToImplement|SchedulerClient|scheduler.group}}
 
{{CodeToImplement|SchedulerClient|scheduler.group}}
  
The output should look something like this.
+
The output should look something like this (not necessarily in this order as it should be parallel).
 
  <nowiki>0
 
  <nowiki>0
 
3
 
3

Revision as of 15:45, 26 April 2022

Code To Implement

class: SchedulerClient.java Java.png
methods: output
package: scheduler.group
source folder: student/src/main/java

method: private static void output(Scheduler scheduler, int N) Parallel.svg (parallel implementation required)

Fork N tasks via scheduler.void_fork which print the indices [0..N).

Code To Run

class: SchedulerClient.java Java.png
methods: scheduler.group
package:
source folder: student/src/main/java

The output should look something like this (not necessarily in this order as it should be parallel).

0
3
2
1
4
5
6
7
8
9