[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: ltask - A multi tasking library for lua
- From: 云风 <cloudwu@...>
- Date: Wed, 29 Apr 2015 16:46:05 +0800
I wrote a new multi tasking library for lua these days, it still work
in process, but I'm pleased to announce here to get more feedback :)
https://github.com/cloudwu/ltask
The core of the library is a m:n schedule , it maps m task (one lua
state per task) to n os thread. (In windows, it uses windows native
threading api, otherwise it uses pthead)
No data can be shared among lua states , the only way for cooperative
is the build-in channels .
ltask has no facility like timer, blocked I/O, etc. but I think it's
easy to use other library (like levent
https://github.com/xjdrew/levent)
on it.
--
http://blog.codingnow.com