Skip to content

This is a pure lua solution which supports process concept. Each lua code chunk is sandboxed as a lua co-routine. The process are still non-preemptive, but with a CPU limitation.

Notifications You must be signed in to change notification settings

gtimworks/lua-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

This is a pure lua solution which supports "process" concept.

Each lua code chunk is sandboxed into a co-routine which is called a lua process. The lua process is still non-preemptive. However, there is a CPU limitation. while running the lua process is provided an API to check time slice available. When running time is used up the lua process should yield out. Any process refusing to do so will be killed.

The lua process is also able to create children co-routines. The children co-routines will also use parent's time slice while running.

Sample test code are provided too.

for more details please refer to http://groups.google.com/group/lua-alchemy-dev/browse_thread/thread/ddb0cf936690f051

About

This is a pure lua solution which supports process concept. Each lua code chunk is sandboxed as a lua co-routine. The process are still non-preemptive, but with a CPU limitation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages