- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
Latest commit
26 lines (22 loc) · 936 Bytes
/
Copy pathMain.java
File metadata and controls
26 lines (22 loc) · 936 Bytes
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
publicclassMain {
publicstaticvoidmain(String[] args) throwsException{
// Basic processes:
OS.startUp(newHelloWorld());
OS.createProcess(newGoodbyeWorld());
// Priority management tests:
OS.createProcess(newInsomniac(), OS.Priority.REALTIME);
OS.createProcess(newNiceRealTime(), OS.Priority.REALTIME);
OS.createProcess(newBackground(), OS.Priority.BACKGROUND);
// File I/O tests:
OS.createProcess(newMereMortal(), OS.Priority.REALTIME);
OS.createProcess(newMultiFIle(), OS.Priority.INTERACTIVE);
OS.createProcess(newReader(), OS.Priority.INTERACTIVE);
// Messages tests:
OS.createProcess(newPing());
OS.createProcess(newPong());
// Virtual Memory Tests:
OS.createProcess(newMemUser());
OS.createProcess(newMoralMemUser());
OS.createProcess(newPigMother());
}
}