[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [PATCH] Proposal: asynchronous coroutines and multithreading
- From: mniip <14@...>
- Date: Sat, 03 Jan 2015 11:39:24 +0300
> But if you are using a global lock what real concurrency are you actually getting? I suspect most of the time the threads will be blocked waiting for that mutex and so the whole thing will degenerate into an expensive form of serialization. Have you tried a simple benchmark using (say) a couple of compute-bound for loops to see how much faster they run vs a single loop?
>
> —Tim
Yes, there's currently no concurrency when executing a lua function so work done
in multiple threads isn't faster than if it's done sequentially. However
per-state mutexes...
--
/* mniip */