Structsยง
- Scheduler ๐
- Scheduler
Process ๐ - A wrapper around
Process
that has extra details the scheduler cares about
Enumsยง
Constantsยง
- MIN_
PRIORITY_ ๐VALUE
Staticsยง
Functionsยง
- exit_
current_ process - Exit the current process, and move the
all_state
to the scheduler. The caller of this function (i.e. interrupt) will use theall_state
to go back to the scheduler. This function will remove the context from the CPU, and thus the value inall_state
will be dropped. - is_
process_ running - push_
process - schedule
- scheduler_
interrupt_ ๐handler - sleep_
current_ process - stop_
scheduler - What this function does is that it tells the scheduler to stop scheduling any more processes. And start the shutdown process.
- swap_
context - syscall_
interrupt_ ๐handler - take_
current_ ๐ โprocess - Safety
- wait_
for_ pid - with_
current_ process - with_
current_ ๐process_ and_ state - with_
process - yield_
current_ if_ any