Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct cpu_state *schedule(struct cpu_state* cpu)
- {
- if (current_task != NULL) {
- current_task->cpu_state = cpu;
- if (current_task = current_task->next)
- current_task->next;
- else
- current_task = first_task;
- } else {
- current_task = first_task;
- }
- return current_task->cpu_state;
- }
Advertisement
Add Comment
Please, Sign In to add comment