MentOS  0.8.0
The Mentoring Operating System
sched.h
Go to the documentation of this file.
1 
6 #include "sys/types.h"
7 #include "time.h"
8 #include "stdbool.h"
9 
11 typedef struct sched_param {
23 
30 int sched_setparam(pid_t pid, const sched_param_t *param);
31 
39 
43 int waitperiod(void);
signed int pid_t
The type of process id.
Definition: types.h:9
struct sched_param sched_param_t
Structure that describes scheduling parameters.
int waitperiod(void)
Placed at the end of an infinite while loop, stops the process until, its next period starts....
int sched_getparam(pid_t pid, sched_param_t *param)
Gets scheduling parameters.
int sched_setparam(pid_t pid, const sched_param_t *param)
Sets scheduling parameters.
Defines the boolean values.
bool_t
Define boolean value.
Definition: stdbool.h:9
Structure that describes scheduling parameters.
Definition: scheduler.h:25
Structure that describes scheduling parameters.
Definition: sched.h:11
time_t deadline
Absolute deadline.
Definition: sched.h:17
time_t arrivaltime
Absolute time of arrival of the task.
Definition: sched.h:19
bool_t is_periodic
Is task periodic?
Definition: sched.h:21
int sched_priority
Static execution priority.
Definition: sched.h:13
time_t period
Expected period of the task.
Definition: sched.h:15
Time-related functions.
unsigned int time_t
Used to store time values.
Definition: time.h:22