niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » HP-UX
gcc single threaded?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Adam
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 251

PostPosted: Mon Jul 10, 2006 6:34 pm    Post subject: Re: gcc single threaded? Reply with quote

In article <44a97267$0$13988$edfadb0f@dread15.news.tele.dk>,
Henrik Goldman <henrik_goldman@mail.tele.dk> wrote:
Quote:
When installing the gcc 4.1.1 package made available by HP it is configured
as "thread model: single". Can anyone tell me what that means in detail? How
does that affect multithreaded code or is this only a restriction on how gcc
works (the compiler itself)?

Thanks in advance.

-- Henrik

The thread model doesn't do much, if anything, to the compiler itself.
It may affect the C++ standard library in that the library will not use
any synchronization to keep classes defined there thread safe. You can
still use the '-pthread' option with GCC to automatically define
-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L on compilations
(on HP-UX 11.* OS releases) and to link in the system pthread library.

The defines that get set on other older HP-UX OS's may be different.

Steve Ellcey
sje <AT> cup . hp . com
Back to top
Henrik Goldman
*nix forums Guru Wannabe


Joined: 26 Mar 2006
Posts: 102

PostPosted: Mon Jul 03, 2006 7:39 pm    Post subject: gcc single threaded? Reply with quote

When installing the gcc 4.1.1 package made available by HP it is configured
as "thread model: single". Can anyone tell me what that means in detail? How
does that affect multithreaded code or is this only a restriction on how gcc
works (the compiler itself)?

Thanks in advance.

-- Henrik
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Nov 22, 2008 8:10 am | All times are GMT
navigation Forum index » *nix » HP-UX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Single Bit Error Correction & Double Eror Detection using... Hari C 3 Fri Jul 21, 2006 11:43 am
No new posts determine pointer to point to array or single item during... yancheng.cheok@gmail.com C++ 5 Fri Jul 21, 2006 1:17 am
No new posts how to run qmail on two ips in a single server anu bhaskar Qmail 6 Thu Jul 20, 2006 9:13 am
No new posts installing depots in single-user mode Zak. HP-UX 2 Wed Jul 19, 2006 4:06 pm

Credit Card Debt Consolidation | Per Insurance | Mortgage Calculator | Yahoo Personals | Mobile Phone
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2413s ][ Queries: 20 (0.1686s) ][ GZIP on - Debug on ]