From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3a2bb5660f396597,start X-Google-Attributes: gidfee84,public From: Scott Risdal Subject: Compiling without thread safety Date: 1999/01/25 Message-ID: <36ACC1F3.269BB31A@superior.dul.epa.gov>#1/1 X-Deja-AN: 436786420 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Trace: newsfeed.slurp.net 917291546 204.220.142.17 (Mon, 25 Jan 1999 13:12:26 CDT) Organization: OAO MIME-Version: 1.0 NNTP-Posting-Date: Mon, 25 Jan 1999 13:12:26 CDT Newsgroups: comp.unix.osf.osf1 I have been doing some profiling on my C++ application running on DEC Unix 4.0d and am concerned with the amount of time spent on thread safety functions(mutexes etc.) The last two runs I did were on a very large program and a sample very small program, both of which made use of basic_string(i.e. string). In both cases, the percent CPU cycles used to deal with thread safety functions was greater than 20 percent! I am using compiler version DIGITAL C++ V6.0-010 on DIGITAL UNIX V4.0 (Rev. 878) and am wondering if there is a way to turn off thread safety. Seems to me the 5.x compilers had a [no]threads option. Scott