[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Locks and threads
From: |
Linas Vepstas |
Subject: |
Re: Locks and threads |
Date: |
Thu, 26 Mar 2009 22:15:12 -0500 |
2009/3/26 Neil Jerram <address@hidden>:
>
> - and that scm_c_eval_string consists of reading (=> symbol lookup)
> followed by evaluation (=> module obarray lookup), and that each
> scm_c_eval_string call is fast enough to be completed well within one
> time slice.
One way to stress test such situations is to call
pthread_yield right after the unlock. i.e. temporarily
change scm_i_pthread_mutex_unlock to also
called yield. This will trigger a thread switch even
if the time-slice is not expired, and can often
expose these kinds of bugs.
--linas
- Re: Locks and threads, (continued)
- Re: Locks and threads, Andy Wingo, 2009/03/12
- Re: Locks and threads, Neil Jerram, 2009/03/13
- 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 <=
- Re: Locks and threads, Ludovic Courtès, 2009/03/14
- Re: Locks and threads, Andy Wingo, 2009/03/16
Re: Locks and threads, Neil Jerram, 2009/03/25
Re: Locks and threads, Neil Jerram, 2009/03/05