Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!beta!hc!hi!josh From: josh@hi.UUCP (Josh Siegel) Newsgroups: comp.unix.questions Subject: Re: Max # of processes. Message-ID: <9783@hi.UUCP> Date: Fri, 26-Jun-87 12:09:13 EDT Article-I.D.: hi.9783 Posted: Fri Jun 26 12:09:13 1987 Date-Received: Sat, 27-Jun-87 09:51:42 EDT References: <845@zyx.UUCP> Reply-To: josh@hi.UUCP (Josh Siegel) Organization: U. of New Mexico, Albuquerque Lines: 21 In article <845@zyx.UUCP> aj@zyx.SE (Arndt Jonasson) writes: > >How can the maximum number of processes in a Unix system be determined? > >Our system is HP-UX for HP9000/200 and HP9000/300, but preferably I >would like to know the most portable way of obtaining this value. We >don't have Unix source. HP-UX is essentially SYS5.2 with some BSD >extensions. > >I also thought of using nlist(3) to read the value of the appropriate symbol >from the kernel, but I didn't find any symbol that seemed to be the >right one. > I am not sure about SYS5.2 but on BSD, there is a var called nproc and I used nlist to get at it. If this doesn't exist in SYS5.2, then.. -- Josh Siegel (siegel@hc.dspo.gov) Friends don't let Friends eat Cherry Zinger1