Skip to contentSkip to conversation

determining max process slots at runtime

DISCUSSION Matthew Love 1 participant 1 message Mar 15, 2001

lore
Share & tools
lore
#0 lore raw

hi

is it possible to determine the maximum number of processes at runtime? I know about #define NR_TASKS, but that might not work if the binary is run on a different machine than the one the program was compiled on.

PS
I'm not looking for the maximum number of processes per user. I've found
that
by getrusage().

TIA

matthew love
software engineer
networkharmoni pty ltd.