Expand description
Implementation of Processor
and Intersection of control flow
Structs§
Functions§
- current_
task - Get running task
- current_
trap_ cx - Get the mutable reference to trap context of current task
- current_
user_ token - Get token of the address space of current task
- run_
tasks - The main part of process execution and scheduling
Loop
fetch_task
to get the process that needs to run, and switch the process through__switch
- schedule
- Return to idle control flow for new scheduling
- take_
current_ task - Take the current task,leaving a None in its place