]> Zhao Yanbai Git Server - minix.git/commit
PM remembers what it should schedule
authorTomas Hruby <tom@minix3.org>
Tue, 13 Apr 2010 10:45:08 +0000 (10:45 +0000)
committerTomas Hruby <tom@minix3.org>
Tue, 13 Apr 2010 10:45:08 +0000 (10:45 +0000)
commit86378ff645f2ca1fec97764e1adda649ad7fcba2
treeb7b61f5ddb515fafc0d0ee1a55b83bc24c43d751
parent5f7c37bb847b2f2dee6646cfa0136b990c921551
PM remembers what it should schedule

- while PM implements fork also for RS it needs to remember what to
  schedule and what not. PM_SCHEDULED flag serves this purpose.

- PM only schedules processes that are descendaints of init, i.e. normal
  user processes

- after a process is forked PM schedules for the first time only
  processes that have PM_SCHEDULED set. The others are handled iether
  by kernel or some other scheduler
servers/pm/forkexit.c
servers/pm/main.c
servers/pm/mproc.h
servers/pm/schedule.c