This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: deciding threading support at compile time
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Christoph Ludwig <cludwig at cdc dot informatik dot tu-darmstadt dot de>, gcc-help at gcc dot gnu dot org
- Date: Mon, 10 May 2004 11:01:50 -0500
- Subject: Re: deciding threading support at compile time
- References: <20040510154554.GB27459@cdc-ws9.cdc.informatik.tu-darmstadt.de>
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