Hello David,

2010/7/14 David Cleaver <[email protected]>:
> Hello everyone,
>
> I currently have a program that I've written that I think could benefit from
> being multi-threaded.  However, I don't yet know how to write multi-threaded
> programs, so I don't know what "libraries" are out there or which ones will 
> work
> (or are included) with mingw64.  Can someone let me know which multi-threaded
> options are available with (or supported in) mingw64?  Thanks for any info.
>
> -David C.

For building multithreading applications - which is an essencial part
even of Windows OSes - you have different choices to achieve this.
First, you can use the OS threading API (see here for API CreateThread
& co). Secondly, you can use the threading model provided by C-runtime
(msvcrt) via _beginthread & co.
If you prefer to use a POSIX thread emulation, you can use the pthread
library (we provide some patches for it, so that built isn't that
difficult, additionally in sezero's private built, this library is
already provided as pre-built DLL IIRC). Also there is the possiblilty
to use the OpenMP library (or gomp) for building multithreaded
application.
But as you are a beginner in multithreading under Windows, I would
recomment to start by the Native OS-API, C-runtime API, or by the
pthread library.

Regards,
Kai


-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to