Threads in Lua
Lua does not support multithreading because of:
- Performance penalties related to synchronization, blocking, and deadlocking
- Hard to find bugs related to threads
- Each operating systems has varying threading and synchronization primitives
Co-routines are provided instead
- Threading can be done through C
- However the coding and results are then operating system dependent