tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Moving pthread_(cond|mutex) to libc

In article <>,
Emmanuel Dreyfus  <> wrote:
>On Thu, Jan 24, 2013 at 04:42:46PM +0100, Joerg Sonnenberger wrote:
>> I don't see any such consensus. Such move penalises non-thread
>> applications and is objectable for that alone.
>Right. Then please go back there and propose anyther way to fix the problem:

I think that the next step is to actually measure the time difference
between the current stub implementation and the proposed change.
Perhaps the overhead of the constructors is tolerable, and the
overhead of the wait routines can be mitigated by checking the
current number of threads in the application and returning if the
application is not threaded. The question is what workload? Perhaps
a full system build would be good. Any other suggestions or ideas?


Home | Main Index | Thread Index | Old Index