F$ID

From NitrOS-9
Jump to: navigation, search
Get Process ID Returns a caller’s process ID and user ID
OS9 F$ID 103F 0C

Entry Conditions

None

Exit Conditions

A process ID

Y user ID

Additional Information

  • The process ID is a byte value in the range 1 to 255. NitrOS-9 assigns each process a unique process ID.
  • The user ID is an integer from 0 to 65,535. It is defined in the system password file, and is used by the file security system and a few other functions. Several processes can have the same user ID.
  • On a single user system (such as the Color Computer 3), the user ID is inherited from CC3Go, which forks the initial shell.

krnp2