954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Threads in C++

I'm starting a project at work where I will be creating multile threads, within a C++ program. I have been out of the C++ community for a while, spending my time the last few years using Java. Given this, I am trying to learn what the standard interface is for creating threads in C++? Also could someone point me to an information site about threads and C++? I have created threads in Java before so I am familiar with the concepts, I just have never done so in C++.

snipercat
Newbie Poster
3 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

C++ does not give you a method out of the box for multithreading like Java does.
To use multithreading, you will have to use the thread libraries offered by the operating system. For win32 you will have to use CreateThread and in unix you will have to use pthread_create .
I think the boost package offers portable ways of creating code that uses threads .

WolfPack
Postaholic
Moderator
2,051 posts since Jun 2005
Reputation Points: 572
Solved Threads: 115
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You