SKS OCDoc
OpenComputers
Computronics
Minitel

module/sched.lua

os.taskInfo(pid^number^): table

returns info on process pid as a table with name and parent values

os.pid(): number

returns the current process' PID

os.getenv(k)

gets a process' k environment variable

os.sched()

the actual scheduler function

os.spawn(f^function^, n^string^): number

creates a process from function f with name n

os.setenv(k, v)

set's the current process' environment variable k to v, which is passed to children

os.tasks(): table

returns a table of process IDs

os.kill(pid^number^)

removes process pid from the task list

© ShadowKat Studios
The software used to generate this page is licensed under the Mozilla Public License version 2 and can be found here