[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Locks and threads
From: |
Neil Jerram |
Subject: |
Re: Locks and threads |
Date: |
Fri, 13 Mar 2009 19:13:07 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Andy Wingo <address@hidden> writes:
> Hey Neil,
>
> On Thu 12 Mar 2009 01:53, Neil Jerram <address@hidden> writes:
>
>> Thanks to a hint from helgrind, I think the problem might be that the
>> symbols obarray is not thread-safe. But surely using a mutex for
>> every symbol that Guile reads would be terrible for performance...
>
> Dunno, in GStreamer we found that uncontended locks are cheap cheap
> cheap. AFAIU they don't even cause context switches. And the reader will
> be less important in terms of e.g. startup time once the VM lands.
Hi Linas, Andy,
Many thanks for your input on this. I'll go ahead with a mutex or
rwlock. First thing is to see if it fixes the problem; if it does,
I'll try to measure the performance impact.
Neil
PS. And thanks Clinton too - although I'd prefer not to have to do
such a big rewrite if we can manage without it.
- Re: Locks and threads, (continued)
- Re: Locks and threads, Ludovic Courtès, 2009/03/05
- Re: Locks and threads, Neil Jerram, 2009/03/10
- Re: Locks and threads, Neil Jerram, 2009/03/11
- Re: Locks and threads, Neil Jerram, 2009/03/11
- Re: Locks and threads, Linas Vepstas, 2009/03/11
- Re: Locks and threads, Clinton Ebadi, 2009/03/11
- Re: Locks and threads, Neil Jerram, 2009/03/25
- Re: Locks and threads, Linas Vepstas, 2009/03/25
- Re: Locks and threads, Andy Wingo, 2009/03/12
- Re: Locks and threads,
Neil Jerram <=
- Re: Locks and threads, Neil Jerram, 2009/03/25
- Re: Locks and threads, Linas Vepstas, 2009/03/25
- Re: Locks and threads, Neil Jerram, 2009/03/26
- Re: Locks and threads, Linas Vepstas, 2009/03/26
- Re: Locks and threads, Ludovic Courtès, 2009/03/26
- Re: Locks and threads, Neil Jerram, 2009/03/26
- Re: Locks and threads, Ludovic Courtès, 2009/03/26
- Re: Locks and threads, Neil Jerram, 2009/03/26
- Re: Locks and threads, Linas Vepstas, 2009/03/26
- Re: Locks and threads, Ludovic Courtès, 2009/03/14