Reputation: 1
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
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
Reputation: 5512
Use the general CRT/ Windows API handles & functions (_beginthread, _beginthreadex, etc.) or MFC classes, like this example.
Upvotes: 2
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
Reputation: 6869
I'd use Boost.Thread, with which you gain portability as well as ease of use.
Upvotes: 6