|
|
|
|
|
|
| Author |
Message |
Adam *nix forums Guru Wannabe
Joined: 22 Feb 2005
Posts: 251
|
Posted: Mon Jul 10, 2006 6:34 pm Post subject:
Re: gcc single threaded?
|
|
|
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
|
Posted: Mon Jul 03, 2006 7:39 pm Post subject:
gcc single threaded?
|
|
|
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 |
|
 |
|
|
The time now is Sat Nov 22, 2008 8:10 am | All times are GMT
|
|
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
|
|