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]

Re: deciding threading support at compile time


Hi Christoph,

q.v.
http://vergil.chemistry.gatech.edu/resources/programming/threads.html

It looks like it is up to YOU to put in the -D_POSIX_PTHREAD_SEMANTICS and -D_REENTRANT on the compile line, and specify -lpthread on the link line.

Keep in mind, C and C++ do not have a language specification for multithreading. Any multithreading facility is an "aftermarket bolt-on". POSIX threads (pthreads) attempts to make a platform agnostic / consistent multithreading experience.

There are languages that do incorporate multithreading into the language proper. For example: Ada, Java and (academic MIT project) Cilk.

HTH,
--Eljay


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