pub fn process_id() -> u32
The process’s id, for the names of temporary files. WebAssembly (WASI) has no process ids, nor other processes: 0 there.