From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,fea4b5bf798159bd X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-06 16:04:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.prod.itd.earthlink.net.POSTED!not-for-mail Newsgroups: comp.unix.tru64 Subject: Re: dlopen and threaded libraries References: <194637fd.0212051024.7129e9f0@posting.google.com> From: Paul Pluzhnikov Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Dec 2002 00:04:53 GMT NNTP-Posting-Host: 66.214.189.101 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1039219493 66.214.189.101 (Fri, 06 Dec 2002 16:04:53 PST) NNTP-Posting-Date: Fri, 06 Dec 2002 16:04:53 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.unix.tru64:9219 David Butenhof 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. Cheers, -- In order to understand recursion you must first understand recursion.