Reputation: 4491
Is there a way to create threads in the default lua command line utility?
Upvotes: 5
Views: 238
Reputation: 7046
As Bartek said there is no support for threads in stock Lua, but you can add thread support to the CLI thanks to the Lua Lanes library (see http://www.luteus.biz/Download/LoriotPro_Doc/LUA/LUA_For_Windows/lanes/index.html / https://github.com/LuaLanes )
Upvotes: 3
Reputation: 39370
No, "stock" build of Lua doesn't have support for threads at all. You can use your operating system forks to spawn more scripts, or stick to coroutines.
Upvotes: 4