Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Provided I do not edit the file : /proc/sys/kernel/pid_max. Therefore, I assume the maximum PID would be 32768.

What happens if I create 32769 simultaneous processes?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

From man fork on OS X (and BSD based systems in general):

ERRORS
 Fork() will fail and no child process will be created if:

 [EAGAIN]    The system-imposed limit on the total number of processes under
             execution would be exceeded.
             This limit is configuration-dependent.

 [EAGAIN]    The system-imposed limit MAXUPRC (<sys/param.h>) on the total number
             of processes under execution by a single user would be exceeded.

 [ENOMEM]    There is insufficient swap space for the new process.
share|improve this answer
    
Thanks a lot.... –  Phelodas May 4 '13 at 5:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.