Re: deciding threading support at compile time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux