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-05 20:44:45 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!washdc3-snf1!news.gtei.net!cyclone1.gnilink.net!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: X-Newsreader: Gnus v5.7/Emacs 20.7 Date: Fri, 06 Dec 2002 04:44:45 GMT NNTP-Posting-Host: 66.214.189.101 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 1039149885 66.214.189.101 (Thu, 05 Dec 2002 20:44:45 PST) NNTP-Posting-Date: Thu, 05 Dec 2002 20:44:45 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.unix.tru64:9215 quenton.pongracz@consulting.fujitsu.com (qpong) writes: > Can dlopen be used to dynamically link to a threaded library at > runtime? Yes, *provided* the executable doing the dlopen() was itself built with threads ... > The documentation seems to suggest that this is not supported. > According to the Tru64 UNIX Guide to DECthreads, > Section A.8 (Dynamic Activation) > "Dynamic activation of the DECthreads run-time environment, or of code > that depends on DECthreads, is currently not supported." Meaning "IF it wasn't active during C runtime startup, it can't become active later". > In practice I know using dlopen works on threaded libraries, why does > the documentation say this is not supported? AFAIK, AIX is the only UNIX system that supports non-threaded exe suddenly becoming multi-threaded. Cheers, -- In order to understand recursion you must first understand recursion.