lua命令行支持线程吗?

时间:2013-03-04 14:49:48

标签: multithreading lua

有没有办法在默认的lua命令行实用程序中创建线程?

2 个答案:

答案 0 :(得分:4)

不,Lua的“stock”版本根本不支持线程。您可以使用操作系统分叉生成更多脚本,或者坚持使用协同程序。

答案 1 :(得分:3)

正如Bartek所说,Lua没有支持线程,但是你可以通过Lua Lanes库添加线程支持(参见http://www.luteus.biz/Download/LoriotPro_Doc/LUA/LUA_For_Windows/lanes/index.html / https://github.com/LuaLanes

相关问题