|
Roomba Tank
CSC 460 Project 3
|
#include <os.h>
Data Fields | |
| PID | p |
| unsigned char * | sp |
| unsigned char | workSpace [WORKSPACE] |
| PROCESS_STATES | state |
| PRIORITY | py |
| PRIORITY | inheritedPy |
| int | arg |
| voidfuncptr | code |
| KERNEL_REQUEST_TYPE | request |
| unsigned int | response |
| TICK | wakeTickOverflow |
| TICK | wakeTick |
| MUTEX | m |
| EVENT | eWait |
| EVENT | eSend |
| unsigned int | suspended |
| PID | pidAction |
Each task is represented by a process descriptor, which contains all relevant information about this task. For convenience, we also store the task's stack, i.e., its workspace, in here.
| voidfuncptr code |
| KERNEL_REQUEST_TYPE request |
| PROCESS_STATES state |
1.8.11