Add TaskStatus definition in chapter 3 exercise

This commit is contained in:
rcy 2023-03-20 20:30:18 +08:00
parent 84d344ddb6
commit 2f8d39a560
1 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,13 @@ ch3 中,我们的系统已经能够支持多个任务分时轮流运行,我
.. code-block:: C
typedef enum {
UnInit,
Ready,
Running,
Exited,
} TaskStatus;
struct TaskInfo {
TaskStatus status;
unsigned int syscall_times[MAX_SYSCALL_NUM];