Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ccTerminal running; XINU Link established.
- [cc-cli] $ Commands:
- show (procs/priorQ/sleepQ):
- * procs: show the status of all processes
- * priorQ: show the order and priorities of ready processes
- * sleepQ: show the order and times of sleeping processes
- resume (pid): resume process `pid`, making it ready
- suspend (pid): suspend process `pid`,
- removing it from the ready queue
- kill (pid): destroy process `pid`
- create (sleeping/ready/looping) [time]:
- * sleeping: create a process asleep for `time` seconds
- * ready: create a process that joins the ready queue
- * looping: create a process that will loop forever
- exit: exit this CLI
- [cc-cli] $ Arg. Error: Invalid list to show
- [cc-cli] $ Printing the process table...
- PROC 0 : Ready
- +--------+
- PROC 1 : Free
- +--------+
- PROC 2 : Current
- +--------+
- PROC 3 : Ready
- +--------+
- PROC 4 : Ready
- +--------+
- PROC 5 : Waiting
- +--------+
- PROC 6 : Waiting
- +--------+
- PROC 7 : Ready
- +--------+
- PROC 8 : Waiting
- +--------+
- PROC 9 : Waiting
- +--------+
- PROC 10 : Ready
- +--------+
- PROC 11 : Receiving
- +--------+
- PROC 12 : Waiting
- +--------+
- PROC 13 : Sleeping
- +--------+
- PROC 14 : Ready
- +--------+
- PROC 15 : Suspended
- +--------+
- PROC 16 : Sleeping
- +--------+
- PROC 17 : Free
- +--------+
- PROC 18 : Waiting
- +--------+
- PROC 19 : Ready
- +--------+
- PROC 20 : Sleeping
- +--------+
- PROC 21 : Waiting
- +--------+
- PROC 22 : Ready
- +--------+
- PROC 23 : Sleeping
- +--------+
- PROC 24 : Waiting
- +--------+
- PROC 25 : Suspended
- +--------+
- PROC 26 : Ready
- +--------+
- PROC 27 : Suspended
- +--------+
- PROC 28 : Free
- +--------+
- PROC 29 : Free
- +--------+
- PROC 30 : Suspended
- +--------+
- PROC 31 : Ready
- +--------+
- PROC 32 : Sleeping
- +--------+
- PROC 33 : Suspended
- +--------+
- PROC 34 : Sleeping
- +--------+
- PROC 35 : Ready
- +--------+
- PROC 36 : Sleeping
- +--------+
- PROC 37 : Waiting
- +--------+
- PROC 38 : Receiving
- +--------+
- PROC 39 : Free
- +--------+
- PROC 40 : Free
- +--------+
- PROC 41 : Suspended
- +--------+
- PROC 42 : Receiving
- +--------+
- PROC 43 : Ready
- +--------+
- PROC 44 : Sleeping
- +--------+
- PROC 45 : Waiting
- +--------+
- PROC 46 : Sleeping
- +--------+
- PROC 47 : Sleeping
- +--------+
- PROC 48 : Receiving
- +--------+
- PROC 49 : Receiving
- +--------+
- PROC 50 : Sleeping
- +--------+
- PROC 51 : Ready
- +--------+
- PROC 52 : Sleeping
- +--------+
- PROC 53 : Ready
- +--------+
- PROC 54 : Free
- +--------+
- PROC 55 : Receiving
- +--------+
- PROC 56 : Waiting
- +--------+
- PROC 57 : Sleeping
- +--------+
- PROC 58 : Ready
- +--------+
- PROC 59 : Receiving
- +--------+
- PROC 60 : Ready
- +--------+
- PROC 61 : Receiving
- +--------+
- PROC 62 : Waiting
- +--------+
- PROC 63 : Sleeping
- +--------+
- [cc-cli] $ Printing the ready queue...
- PROC 4 : PRIORITY 93
- +--------+
- PROC 31 : PRIORITY 93
- +--------+
- PROC 10 : PRIORITY 92
- +--------+
- PROC 35 : PRIORITY 88
- +--------+
- PROC 22 : PRIORITY 87
- +--------+
- PROC 7 : PRIORITY 85
- +--------+
- PROC 3 : PRIORITY 84
- +--------+
- PROC 53 : PRIORITY 70
- +--------+
- PROC 19 : PRIORITY 67
- +--------+
- PROC 58 : PRIORITY 61
- +--------+
- PROC 60 : PRIORITY 53
- +--------+
- PROC 43 : PRIORITY 49
- +--------+
- PROC 14 : PRIORITY 43
- +--------+
- PROC 26 : PRIORITY 39
- +--------+
- PROC 51 : PRIORITY 22
- +--------+
- PROC 0 : PRIORITY 10
- +--------+
- [cc-cli] $ Printing the sleep queue...
- PROC 63 : SLEEPING FOR 16 SECONDS
- +--------+
- PROC 57 : SLEEPING FOR 40 SECONDS
- +--------+
- PROC 52 : SLEEPING FOR 58 SECONDS
- +--------+
- PROC 50 : SLEEPING FOR 76 SECONDS
- +--------+
- PROC 47 : SLEEPING FOR 91 SECONDS
- +--------+
- PROC 46 : SLEEPING FOR 114 SECONDS
- +--------+
- PROC 44 : SLEEPING FOR 138 SECONDS
- +--------+
- PROC 36 : SLEEPING FOR 139 SECONDS
- +--------+
- PROC 34 : SLEEPING FOR 145 SECONDS
- +--------+
- PROC 32 : SLEEPING FOR 158 SECONDS
- +--------+
- PROC 23 : SLEEPING FOR 172 SECONDS
- +--------+
- PROC 20 : SLEEPING FOR 193 SECONDS
- +--------+
- PROC 16 : SLEEPING FOR 214 SECONDS
- +--------+
- PROC 13 : SLEEPING FOR 238 SECONDS
- +--------+
- [cc-cli] $ Type Error: `pid` must be an integer.
- [cc-cli] $ Killing Process 3...
- [cc-cli] $ Resuming Process 4...
- [cc-cli] $ Suspending Process 5...
- [cc-cli] $ Argument Error: `time` must be an integer.
- [cc-cli] $ Creating a process initially asleep for 10 seconds...
- [cc-cli] $ Creating a process ready to run...
- [cc-cli] $ Creating a process that will loop forever...
- [cc-cli] $ Command Error: Unaccompanied string: "hello world"
- [cc-cli] $ Command Error: unaccompanied integer: 11
- Command Error: unaccompanied integer: 09
- Command Error: unaccompanied integer: 199
- Command Error: Unaccompanied string: "X"
- [cc-cli] $
- Terminal exiting now...
Add Comment
Please, Sign In to add comment