Has Lua got threads?
Yes and no, depending on the meaning of ‘threads’. If you mean multitasking with OS threads, the answer is no, but Lua has coroutines which allow cooperative multitasking. A coroutine is a function which may yield at any point and may be resumed later. While it is yielded, it keeps its state, no matter how deep the call stack.
Related Questions
- I downloaded Java and got the error: "Unable to initialize threads -- cannot find class java/lang/thread". What should I do?
- I failed a pre-professional course, repeated it and got a better mark. How will my pre-professional GPA be calculated?
- I’ve got a question about the Wait List that wasn’t answered here. What do I do?