Guest User

Untitled

a guest
Feb 1st, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. struct cpu_state *schedule(struct cpu_state* cpu)
  2. {
  3.         if (current_task != NULL) {
  4.         current_task->cpu_state = cpu;
  5.  
  6.         if (current_task = current_task->next)
  7.             current_task->next;
  8.         else
  9.             current_task = first_task;
  10.     } else {
  11.         current_task = first_task;
  12.     }
  13.  
  14.         return current_task->cpu_state;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment