Module os::task

source ·
Expand description

Implementation of process management mechanism

Here is the entry for process scheduling required by other modules (such as syscall or clock interrupt). By suspending or exiting the current process, you can modify the process state, manage the process queue through TASK_MANAGER, and switch the control flow through PROCESSOR.

Be careful when you see __switch. Control flow around this function might not be what you expect.

Modules§

Structs§

Enums§

  • task status: UnInit, Ready, Running, Exited

Constants§

  • pid of usertests app in make run TEST=1
  • The max signal number

Functions§