Hello,
Please tell me how to implement multi threading in C++ on Ubuntu 10.10.
The compiler I use is GNU 4.5.2. I have some knowledge of multi-threading in Java. Explain with some codes if possible. Or please give the URL of any useful stuff
Hello,
Please tell me how to implement multi threading in C++ on Ubuntu 10.10.
The compiler I use is GNU 4.5.2. I have some knowledge of multi-threading in Java. Explain with some codes if possible. Or please give the URL of any useful stuff
Takes about a 2 second Google search... probably less:
http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html
You should definitely use Boost.Thread. (you can download and install libboost-all-dev:
$ sudo apt-get install libboost-all-dev
Then, here are two simple examples. One with a global function and one with a member function.
Check this latest book for multithreading in cpp it uses CPP11 standerd which encourages portablity
http://linkshrink.net/74HUmH
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.