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 14:45:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6) Gecko/20011120

Wolfram Gloger wrote:

For single threaded programs/libraries using the
_unlocked versions of the stdio functions provide
very big performance gains. So why aren't these selected
by default #ifndef _REENTRANT, as this must be defined
for all multithreaded apps?


This would make it impossible to let 'single-threaded' programs
interoperate with multi-threaded libraries.  E.g. some day someone
might decide to make libncurses.so multithreaded internally, while
keeping the same API.

Regards,
Wolfram.

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?

Padraig.




reply via email to

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