[comp.unix.questions] How can I count no of process invocations?

hendrik@zeusa.UUCP (Hendrik Vermooten) (08/31/90)

I would like to determine (from a C program) how many copies of the current
process are running on the machine at a point. If possible, I dont want to
run a shell script with system, but would prefer something (pref simple?),
eg using shared memory.

Thanx in advance.

--------------------------------------------------------------------------
Hendrik Vermooten, ZEUS software  Tel [27 12] 64-5507, FAX [27 12] 64-8382
Bang: ..!uunet!ddsw1!olsa99!zeusa!hendrik     or        hendrik@zeusa.UUCP
--------------------------------------------------------------------------