bug-glibc
[Top][All Lists]
Advanced

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

Re: single threaded performance enhancement


From: Padraig Brady
Subject: Re: single threaded performance enhancement
Date: Mon, 26 Nov 2001 16:56:41 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120

Wolfram Gloger wrote:

So you can't have the single-threaded app calling
for e.g. getc_unlocked and a consituent multithreaded
library calling getc? bummer. Why not?


Because getc_unlocked assumes (and may assume) it is the only thread
that accesses stdio's internal data structures.

Regards,
Wolfram.


Oh I see now. When I said multithreaded lib previously I hadn't
considered the lib itself creating it's own threads, as opposed
to being just thread safe. Yes so you are correct in this case,
bummer. Thanks for the clarification.

Padraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]