1 typedef unsigned short ushort
;
3 /*********** MTX Multitasking System ************/
8 #define NQUEUE NPROC // at most NPROC ready queues
10 #define FREE 0 // proc statuc
18 int *ksp
; /* offset = 4 bytes */
20 int uss
, usp
; // at 4, 6
22 int pid
; /* pid = 0 to NPROC-1 */
24 int pri
; /* scheduling priority */
25 int ppid
; /* parent pid */
35 int kstack
[SSIZE
]; // Kmode per process stack
39 int priority
; // 0, 1,...NQUEUE-1
40 PROC
*queue
; // PROC queue of this priority level
43 extern struct rqueue rqueue
[ ];
45 extern PROC proc
[NPROC
], *running
, *freeList
, *sleepList
;