Jimmy
Jimmy

Reputation: 1

How to: Threading on windows platform (C++)

I shall like to know how to use threading on windows platform. Do I need to include some lib or dll file? Is there some command?

Upvotes: 0

Views: 445

Answers (4)

Ghita
Ghita

Reputation: 4505

for documentation regarding C++ 0x threads standard that is also portable (works on any platform) you can also have a lokk here: http://accu.org/var/uploads/journals/overload93.pdf (see article multi-threading in C++0x)

Upvotes: 1

rkellerm
rkellerm

Reputation: 5512

Use the general CRT/ Windows API handles & functions (_beginthread, _beginthreadex, etc.) or MFC classes, like this example.

Upvotes: 2

Martin Ba
Martin Ba

Reputation: 38785

The Windows API (Win32) includes a number of threading tools.

Since you tagged this as C++ and not C, you might however consider using something more elaborate like just::thread (or std::thread if your compiler supports it) or Boost.Thread like usta suggested.

Upvotes: 4

usta
usta

Reputation: 6869

I'd use Boost.Thread, with which you gain portability as well as ease of use.

Upvotes: 6

Related Questions