getpid

Get nelson(s) Process IDentificator.

Syntax

  • p = getpid()

  • v = getpid('available')

Input argument

  • 'available' - a string.

Output argument

  • p - a double: current Process Identificator.

  • v - a vector of double: list of nelson Processes Identification (with same arch) currently running for current user.

Description

p = getpid() returns current nelson process identificator currently running on computer.

v = getpid('available') returns list of nelson processes identificators (with same arch) running for current user.

win64 and win32 are two differents architecture but they can run in same time.

Example

p = getpid()
getpid('available')
unix('nelson-gui &')
sleep(5) % detached process need to wait to see available
getpid('available')
unix('nelson-gui &')
sleep(5) % detached process need to wait to see available
getpid('available')
unix('nelson-gui &')
sleep(5) % detached process need to wait to see available
getpid('available')

See also

unix, ipc.

History

Version
Description

1.0.0

initial version

Author

Allan CORNET

Last updated