NPROC

Curtis Jensen cjensen at bioeng.ucsd.edu
Tue Oct 17 20:05:09 EDT 2000


Running SGI IRIX 6.5: Python 1.5.2

I need to get the nproc (max number of processes) value.  The Library
reference page says that the resource module had RLIMIT_NPROC.  Our
resource does not have this variable.


>>> dir(resource)
['RLIMIT_AS', 'RLIMIT_CORE', 'RLIMIT_CPU', 'RLIMIT_DATA',
'RLIMIT_FSIZE', 'RLIMIT_NOFILE', 'RLIMIT_RSS', 'RLIMIT_STACK',
'RLIMIT_VMEM', 'RUSAGE_CHILDREN', 'RUSAGE_SELF', '__doc__', '__file__',
'__name__', 'error', 'getpagesize', 'getrlimit', 'getrusage',
'setrlimit']

Is there a python function to get nproc without writting my own? 
Thanks.

-- 
Curtis Jensen
cjensen at bioeng.ucsd.edu
http://www-bioeng.ucsd.edu/~cjensen/
FAX (425) 740-1451



More information about the Python-list mailing list