Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
api:process [2015/10/06 21:03]
phallopode Fixed "Contents" headline not displayed correctly
api:process [2016/02/29 09:26]
payonel [Process API]
Line 2: Line 2:
 ========== ==========
 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.
  
 - `process.load(path:​string[,​ env:table[, init:​function[,​ name:​string]]]):​coroutine`  ​ - `process.load(path:​string[,​ env:table[, init:​function[,​ name:​string]]]):​coroutine`  ​