This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


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

RE: pthreads support


On Mon, 26 Mar 2001, Heribert Dahms wrote:

> can you please give a short description or URL
> about what multithreading gcc would use?
> I always thought that only the worker subprocesses
> (cpp, cc1, ld, as) of the compiler driver may run
> concurrently!

The GCC compilers and drivers are not multi-threaded, so you get no
benefit from that. The multi-threading interface in gcc is needed to
support thread-safe C++ exceptions (Java may need it too, but I know
next to nothing about the GCC Java front-end). Currently supported
interfaces are single (default for Cygwin for example), POSIX, Windows32, 
DCE, and vxWorks. The Mingw compiler uses the Windows32, which, with a 
slight change [1], it'll work with Cygwin as well, but I believe it'll 
be better to avoid that and work on getting pthreads interface to work.

[1] In that case, you'll also need a helper DLL that every MT C++ code
links with, or need to add a small bit of code to Cygwin.

Regards,
Mumit



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