Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: David Butenhof <David.Butenhof@hp.com>
Subject: Re: dlopen and threaded libraries
Date: Mon, 09 Dec 2002 08:45:51 -0500	[thread overview]
Message-ID: <UX0J9.8$Ui1.414845@news.cpqcorp.net> (raw)
In-Reply-To: m3wummg252.fsf@salmon.parasoft.com

Paul Pluzhnikov wrote:

> David Butenhof <David.Butenhof@hp.com> writes:
> 
>> Paul Pluzhnikov wrote:
>> > AFAIK, AIX is the only UNIX system that supports non-threaded exe
>> > suddenly becoming multi-threaded.
>> 
>> Really? Are you sure about that?
> 
> Perhaps I am reading more than what is written?
> http://www-1.ibm.com/servers/esdd/pdfs/aix_ll.pdf (page 23):
> 
>   With the introduction of AIX 4.3, all system libraries are now
>   inherently thread-enabled. libc contains a mechanism whereby
>   it can detect whether the pthreads environment must be enabled,
>   and will perform all initialization required to support pthreads
>   at program start-up, as well as at the time that libpthreads
>                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   is introduced into a running process via dynamic loading. This
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   means that a program can be constructed in a manner that does not
>   take advantage of threads, but may become a threaded program due
>   to a module dependency hierarchy that incorporates the pthreads
>   library. It is advantageous to consider support for threads when
>   an application is built.

Well. Interesting. That certainly sounds pretty unambiguous.

On the other hand, that is all essentially what we tried to do. The problem 
is that while the system libraries (e.g., libc) are all "thread enabled", 
some (e.g. libc ;-) ) are not capable of REEVALUATING that decision once 
it's been made. There's nothing in the AIX documentation extract you've 
shown that actually SAYS anything different. (Though it clearly IMPLIES 
that it ought to be able to reevaluate dynamically.)

Still, someone in AIX clearly wanted to try and thought it was useful. Which 
I suppose means nothing more than that it wasn't designed by the same 
people who were arguing in The Open Group. ;-)

-- 
/--------------------[ David.Butenhof@hp.com ]--------------------\
| Hewlett-Packard Company       Tru64 UNIX & VMS Thread Architect |
|     My book: http://www.awl.com/cseng/titles/0-201-63392-2/     |
\----[ http://homepage.mac.com/dbutenhof/Threads/Threads.html ]---/


      reply	other threads:[~2002-12-09 13:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-05 18:24 dlopen and threaded libraries qpong
2002-12-06  4:44 ` Paul Pluzhnikov
2002-12-06 13:25   ` David Butenhof
2002-12-07  0:04     ` Paul Pluzhnikov
2002-12-09 13:45       ` David Butenhof [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox