Pourvu que je n'édite pas le fichier: / proc / sys / kernel / pid_max. Par conséquent, je suppose que le PID maximum serait 32768.
Que se passe-t-il si je crée 32769 processus simultanés?
Sous man fork
OS X (et systèmes basés sur BSD en général):
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.