|
On 29.03.2018 11:28, Laurent FAILLIE
wrote:
Yes and no. I don't use OS threading to schedule the Lua threads. All Lua threads run in one C thread. On the other hand, I would not call them co-routines anymore as the scheduler I implemented is preemptive. I can't give you a final answer as I never tried to use multiple C threads on the same global Lua state. As far as Lua 5.1 and Lua 5.2 goes I came to the conclution, that Lua runs in the locked state for most of the time and therfore you wont be able to run the co-routines totally concurrently. I would actually be interested in that approach, if someone has some experience with it. -- Thomas |