Yes, by "concurrent modifications" and "shared variable write" I mean
concurrent writes. Not reads, of course.

On Tue, Jan 3, 2012 at 5:48 PM, Brandon Black <[email protected]> wrote:

>
>
> On Tue, Jan 3, 2012 at 5:02 AM, Yaroslav <[email protected]> wrote:
>>
>> Interesting observation: removing __thread storage class makes thread
>> data shared by all threads. Even without any locks concurrent modifications
>> of the same memory area result in 5-10 fold test time increase. I.e.,
>> shared variable write is about 5-10 times slower than non-shared even
>> without any locks.
>>
>
> I assume you mean concurrent writes of course.  Implicitly shared memory
> between threads should have regular access time when there's no false
> sharing with other threads writing to nearby memory.
>
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to