This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linux multithread option, pthread , D_REENTRANT


Hi,
I want to build multithread option on Linux.
I am using gcc 3.2.x version.

I have found, I have to use -pthread option. Is it
correct option, to make my application multithreaded?

Do I have to use this option for compile time or/&
link time?

Do I have to use the "-D_REENTRANT" option, at
compiler time time?

Is there any other command line option should I add,
to make my application multithreaded?

Thank you,
Avin Patel


 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]