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

Recommended Answers

All 3 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.