Question

Is it possible to create a multithreading application in VC6 with boost library? If it is possible, what are some relevant tutorials.

Was it helpful?

Solution

Yes, I have done this successfully, but with Boost v1.30.0. So if you have trouble with the latest versions of the Boost libraries, you might want to go back a year or five. I recall I started getting all sorts of internal compiler errors, et al., when trying to upgrade Boost -- so I didn't, but rather went on using v1.30.0 until I was able to upgrade Visual C++ as well. Even the old versions of Boost are very stable and useful, they just have less features.

OTHER TIPS

A quick google for "boost thread example" turns up lots of good hits.

The Boost.Thread library provides thead creation and manipulation facilities. Read the boost documentation (link was provided in litb's answer). It also provides synchronization bojects (mutexs). Boost is cross platform and is compatible with VS6.

As for the rest of the boost libraries - they are usually thread safe, but read the documentation of each particular library of details.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top