01a8cffe77
write lock when doing PID allocation, and during the process exit path. Use a read lock every where else, including within schedcpu() (interrupt context). Note that holding the write lock implies blocking schedcpu() from running (blocks softclock). PID allocation is now MP-safe. Note this actually fixes a bug on single processor systems that was probably extremely difficult to tickle; it was possible that schedcpu() would run off a bad pointer if the right clock interrupt happened to come in the middle of a LIST_INSERT_HEAD() or LIST_REMOVE() to/from allproc. |
||
---|---|---|
.. | ||
aout | ||
common | ||
freebsd | ||
hpux | ||
ibcs2 | ||
linux | ||
m68k4k | ||
netbsd32 | ||
osf1 | ||
ossaudio | ||
sunos | ||
svr4 | ||
ultrix | ||
vax1k | ||
Makefile |