如何更改MINIX操作系统以支持IO绑定进程而不是CPU绑定进程?

如何更改MINIX操作系统以支持IO绑定进程而不是CPU绑定进程?,c,operating-system,minix,round-robin,C,Operating System,Minix,Round Robin,调度程序当前使用循环调度。 我可以访问每个进程的用户时间和系统时间 头部用户时间 rdy_头[用户_Q]->用户时间 头部系统时间 rdy_头[用户_Q]->用户时间 我需要支持IO绑定的进程,但cpu绑定的进程不能完全耗尽 有什么想法吗 /*===========================================================================* * sched * *=

调度程序当前使用循环调度。 我可以访问每个进程的用户时间和系统时间

头部用户时间

rdy_头[用户_Q]->用户时间

头部系统时间

rdy_头[用户_Q]->用户时间

我需要支持IO绑定的进程,但cpu绑定的进程不能完全耗尽

有什么想法吗

/*===========================================================================*
 *              sched                        * 
 *===========================================================================*/
PRIVATE void sched()
{
/* The current process has run too long.  If another low priority (user)
 * process is runnable, put the current process on the end of the user queue,
 * possibly promoting another user to head of the queue.
 */

  if (rdy_head[USER_Q] == NIL_PROC) return;

  /* One or more user processes queued. */
  rdy_tail[USER_Q]->p_nextready = rdy_head[USER_Q];
  rdy_tail[USER_Q] = rdy_head[USER_Q];
  rdy_head[USER_Q] = rdy_head[USER_Q]->p_nextready;
  rdy_tail[USER_Q]->p_nextready = NIL_PROC;

  pick_proc();

}