This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
api:process [2016/02/29 09:26] payonel [Process API] |
api:process [2016/02/29 17:46] payonel [Process API] |
||
---|---|---|---|
Line 3: | Line 3: | ||
This API provides rudimentary process management. It is used mainly by the `io` module to provide individual standard input and output to individual programs. | This API provides rudimentary process management. It is used mainly by the `io` module to provide individual standard input and output to individual programs. | ||
- | It can be helpful to think of a process as a coroutine with extra metadata. A process inherits the metadata of its parent, but can define its own. Such metadata supports stdio and terminal windows. All coroutines created are child instances of the current process. | + | It can be helpful to think of a process as a coroutine with extra metadata. A process inherits the metadata of its parent, but can define its own. Such metadata supports stdio and terminal windows. All coroutines created are grouped like child threads of the current process. |
- `process.load(path:string[, env:table[, init:function[, name:string]]]):coroutine` | - `process.load(path:string[, env:table[, init:function[, name:string]]]):coroutine` |