i'm a bit confused by the instructions in ps2 about how to test our
schedulers. it says to use kernel threads.
however, shouldn't scheduling be done on a process-by-process basis (i
think this is how most flavors of unix do it, because there is a
one-to-one correspondence between threads and processes), or are we
expected to support user-level threads the way that mach does, which would
mean that we need to worry about scheduling threads individually (but it
still seems that some information needs to be kept in the proc struct, at
best to prevent processes from spawning hundreds of threads to better
compete for the cpu).
just to bring this back down to ground level: it seems logical to store
scheduling info in the proc structure. where is the proc structure for
the kernel?
-gwa-
Show replies by date