Difference between revisions of "Scheduler Client Assignment"
Jump to navigation
Jump to search
(Created page with "=Code To Implement= {{CodeToImplement|SchedulerClient|output|scheduler.group}} Fork N tasks via scheduler.void_fork which print the indices [0..N). =Code To Run= {{CodeToImp...") |
|||
| Line 1: | Line 1: | ||
=Code To Implement= | =Code To Implement= | ||
{{CodeToImplement|SchedulerClient|output|scheduler.group}} | {{CodeToImplement|SchedulerClient|output|scheduler.group}} | ||
| + | |||
| + | {{Parallel|private static void output(Scheduler scheduler, int N)}} | ||
Fork N tasks via scheduler.void_fork which print the indices [0..N). | Fork N tasks via scheduler.void_fork which print the indices [0..N). | ||
Revision as of 15:45, 26 April 2022
Code To Implement
| class: | SchedulerClient.java | |
| methods: | output | |
| package: | scheduler.group | |
| source folder: | student/src/main/java |
method: private static void output(Scheduler scheduler, int N)
(parallel implementation required)
Fork N tasks via scheduler.void_fork which print the indices [0..N).
Code To Run
| class: | SchedulerClient.java | |
| methods: | scheduler.group | |
| package: | ||
| source folder: | student/src/main/java |
The output should look something like this.
0 3 2 1 4 5 6 7 8 9