🏁
Concurrent Programming Guide
  • Welcome
  • Overview
  • data structure
    • Cumulative Integer
    • Base
    • Arrays
    • Ordered Maps
  • utility
    • Multiprocessor
    • Runtime
    • Storage
  • Examples
    • Contract Examples
Powered by GitBook
On this page
  1. utility

Runtime

Runtime Info Provider

PreviousMultiprocessorNextStorage

Last updated 1 month ago

The provides runtime information to developers. It exposes functions to retrieve pseudo-process IDs (PIDs) and pseudo-random UUIDs.

Usage

pid(): Returns the pseudo-process ID (PID) of the current execution unit (EU). Since all EUs are identical and stateless, pid() is useful for generating deterministic, job-scoped keys or values within parallel execution.

uuid(): Returns a deterministic, job-scoped pseudo-random UUID. This value is unique per job and can be used to generate non-colliding keys or identifiers within the concurrent execution context.

Runtime contract