Determine maximum allowable processes on a platform

Hello Unix gurus,

I'm creating this analysis to determine whether the maximum allowable process is nearly reached then alarm the user with it. Can someone please help me on how I can determine the maximum allowable process that a platform can handle? BTW, below are the details that might be useful.

Jin@PRODUCTION: > ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         2097152
stack(kbytes)        131168
memory(kbytes)       unlimited
coredump(blocks)     4194303
nofiles(descriptors) 10000
Jin@PRODUCTION: > uname -a
HP-UX PRODUCTION B.11.11 U 9000/800 313767787 unlimited-user license

Cheers on valentines day! :stuck_out_tongue: