Difference between revisions of "Scheduler Client Assignment"
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
The output should look something like this (not necessarily in this order as it should be parallel). | The output should look something like this (not necessarily in this order as it should be parallel). | ||
| − | + | {{CollapsibleConsole|SchedulerClient output|<pre style="border: 0px; background: #000; color:#fff;"> | |
| + | 0 | ||
3 | 3 | ||
2 | 2 | ||
| Line 19: | Line 20: | ||
7 | 7 | ||
8 | 8 | ||
| − | 9</ | + | 9 |
| + | </pre>}} | ||
Revision as of 18:27, 8 May 2025
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
Run SchedulerClient in the scheduler.group package (the file you are editing).
The output should look something like this (not necessarily in this order as it should be parallel).
| SchedulerClient output |
|---|
0 3 2 1 4 5 6 7 8 9 |