Add TaskStatus definition in chapter 3 exercise
This commit is contained in:
parent
84d344ddb6
commit
2f8d39a560
|
@ -24,6 +24,13 @@ ch3 中,我们的系统已经能够支持多个任务分时轮流运行,我
|
||||||
|
|
||||||
.. code-block:: C
|
.. code-block:: C
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
UnInit,
|
||||||
|
Ready,
|
||||||
|
Running,
|
||||||
|
Exited,
|
||||||
|
} TaskStatus;
|
||||||
|
|
||||||
struct TaskInfo {
|
struct TaskInfo {
|
||||||
TaskStatus status;
|
TaskStatus status;
|
||||||
unsigned int syscall_times[MAX_SYSCALL_NUM];
|
unsigned int syscall_times[MAX_SYSCALL_NUM];
|
||||||
|
|
Loading…
Reference in New Issue