-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preemptive scheduling is hard, so i went back to cooperative scheduling.
- Loading branch information
tone121
committed
Feb 20, 2018
1 parent
3fb04f8
commit 5663c3d
Showing
4 changed files
with
14 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
#ifndef SCHED_H | ||
#define SCHED_H | ||
|
||
#include <cpu/idt.h> | ||
#include <cpu/pic.h> | ||
#include <cpu/pit.h> | ||
#include <tty/panic.h> | ||
#include <sched/process.h> | ||
|
||
void sched_init(process_t *proc); | ||
void sched_add(process_t *proc); | ||
void sched_remove(process_t *proc); | ||
unsigned long sched_pid_alloc(void); | ||
unsigned long sched_step(void); | ||
void sched_step(void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters