Difference between revisions of "Pid"
From Mesham
Jump to navigationJump to search (Created page with '== Overview == This pid[] function will return the current processes' ID number. * '''Pass:''' Nothing * '''Returns:''' An integer representing the current process ID == Exampl…') |
m (4 revisions imported) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | This pid | + | This pid() function will return the current processes' ID number. |
* '''Pass:''' Nothing | * '''Pass:''' Nothing | ||
− | * '''Returns:''' An | + | * '''Returns:''' An [[Int]] representing the current process ID |
== Example == | == Example == | ||
− | var a:=pid | + | #include <parallel> |
+ | |||
+ | function void main() { | ||
+ | var a:=pid(); | ||
+ | }; | ||
+ | |||
+ | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:Parallel Functions]] | [[Category:Parallel Functions]] |
Latest revision as of 15:44, 15 April 2019
Overview
This pid() function will return the current processes' ID number.
- Pass: Nothing
- Returns: An Int representing the current process ID
Example
#include <parallel> function void main() { var a:=pid(); };
Since: Version 0.41b