[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Random crashed with threaded application
- From: kamicc olo <kamicc@...>
- Date: Fri, 21 Jun 2013 00:44:32 +0300
I guess it would be easier and would make more sense building some
message mechanism on C side to communicate between those separate
threads and Lua VMs. Then in more or less distant future You wouldn't
have to do a total rework to move to separate processes, separate CPUs
or even separate REAL machines....
On 6/21/13, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>> So does the Lua VM store some static variables or so? Why it's not
>> supported? My naive thoughts let me understand that if I use the state
>> and leave it just like when I found it, it should continue working.
>
> The Lua VM does not use static variables but its data structures are not
> thread-safe. For instance, two threads passing a string to the Lua VM
> could mess with the string hash table.
>
>