[ RCOS.java Home | RCOS Home | David's Home ]
Name: |
Process |
Comment: |
Data structure to store information about process currently including both thread of execution and resource ownership. Later version should probably seperate these out and support multiple threads. |
Collaborators: |
ProcessContext - process information
from CPU ProcessStatistics |
String name; // user name for process, if any
int priority, quantum; // max permissable ticks per scheduling
int pid, // unique ID for process (PID)
pPid; // parent PID of process
ProcessContext theContext;
int uStatus, // current status
int uDevCnt; // count of devices open by process
Message pReply; // message associated with wake-up
ProcessStatistics theStats // stats about process
Tty theTerminal; // pointer line protocol driver
??UINT16 uTos; // fetched values at top of stack
BitMap semaphores; // bit set of semaphores owned
?? Files, SharedMemory ??