- int id; // identificador da tarefa
- char *name; // nome da tarefa
- struct ctx_t context; // contexto armazenado da tarefa
- // ...
+ STATUS_READY,
+ STATUS_RUNNING,
+ STATUS_SUSPENDED,
+ STATUS_TERMINATED
+};
+
+/* Task Control Block. */
+struct task_t
+{/* TODO comment fields. */
+ int id;
+ char *name;
+ enum task_status status;
+ struct task_t *parent;
+ struct ctx_t context;