---
url: /process-functions/process-join.md
description: >-
  Initiates the execution of all processes that have been scheduled via
  process.fork(), allowing them to run concurrently.
---

# process.join

Initiates the execution of all processes that have been scheduled via `process.fork()`, allowing them to run concurrently. This function triggers the start of asynchronous execution for each process in the fork queue and waits for all to complete. All forked processes are both started and finished before proceeding beyond the `process.join()` call.

```js
process.join()
```

#### Returns

* This function does not return a value. It serves to both start the asynchronous execution of forked processes and ensure their completion.

#### Examples

```js
// Schedule several processes for concurrent execution.
process.fork("process1");
process.fork("process2", { "param1": "value1" });

// Start the execution of the forked processes and wait for them to complete.
process.join();
// Script execution continues here after all forked processes have been executed and completed.
```
