pid rollover?
Paul De Bra
debra at alice.UUCP
Thu Feb 2 06:44:43 AEST 1989
In article <1989Jan31.164710.19502 at ateng.ateng.com> chip at ateng.ateng.com (Chip Salzenberg) writes:
}According to jr at oglvee.UUCP (Jim Rosenberg):
}>Our system is an Altos 2000 running Xenix System V. The CPU is a 386, and
}>the C compiler produces 4 as sizeof(int). However we seem to be hitting
}>rollover of pids at 32K, implying that the kernel must be using short as the
}>type of a pid -- at least internally.
}
}The getpid() system call has to work for '286 binaries under Xenix/386.
}So all pids must be representable as a 16-bit integers.
This is not the reason at all. The limit on pid's is 30000, which is just
an arbitrary number, for historical reasons, and which appears to be the
same on all Unix systems (at least all I've seen). It probably is smaller than
32767 because Unix originally ran on 16-bit machines (PDP), but the number
is just arbitrary. Any number greater than the maximal number of processes
would do.
Paul.
--
------------------------------------------------------
|debra at research.att.com | uunet!research!debra |
------------------------------------------------------
More information about the Comp.unix.wizards
mailing list