pid rollover?
Steven M. Bellovin
smb at ulysses.homer.nj.att.com
Mon Feb 13 10:45:51 AEST 1989
In article <3059 at ficc.uu.net>, walker at ficc.uu.net (Walker Mangum) writes:
} Actually, there's a much easier method (since the pid really is arbitrary).
} Many OS's for real-time type systems (where getting to a process's control
} info with efficiency is important) simply assign a "pid" (task id) that is
} the *index* into the "process table", or is actually an address in the
} "process table". A system that comes to mind is Modcomp's MAX 32 OS. It
} ain't Unix, but it *can* process 50,000 *external* interrupts and do 10,000
} process context switches per second!
Many years ago, I saw a mod to a V6 UNIX(r) system that used the process
table slot as the low-order 8 bits of the pid, and incremented a counter
in the high-order bits to ensure that a pid wasn't reused too soon.
More information about the Comp.unix.wizards
mailing list