idle.c File Reference
Idle loop for preemptive scheduling. More...
#include "idle.h"
#include "proc.h"
#include <cfg/module.h>
Go to the source code of this file.
Functions | |
| static NORETURN void | idle (void) |
| The idle process. | |
Detailed Description
Idle loop for preemptive scheduling.
- Version:
- Id
- idle.c 2949 2009-09-16 08:04:45Z lottaviano
Definition in file idle.c.
Function Documentation
| static NORETURN void idle | ( | void | ) | [static] |
The idle process.
This process never dies and never sleeps. It's also quite lazy, apathic and sometimes even a little antisocial.
Having an idle process costs us some stack space, but simplifies the interrupt-driven preemption logic because there is always a user context to which we can return.
The idle process is not required for cooperative task switching.
