$ParentProcessID
gives the ID assigned to the process which invokes the Wolfram Language kernel by the operating system under which it is run.
Examples
Basic Examples (1)
Wolfram Research (1996), $ParentProcessID, Wolfram Language function, https://reference.wolfram.com/language/ref/$ParentProcessID.html.
Text
Wolfram Research (1996), $ParentProcessID, Wolfram Language function, https://reference.wolfram.com/language/ref/$ParentProcessID.html.
CMS
Wolfram Language. 1996. "$ParentProcessID." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$ParentProcessID.html.
APA
Wolfram Language. (1996). $ParentProcessID. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$ParentProcessID.html