I have seen tutorials on the internet for making multithreaded applications in C++ on Windows, and other tutorials for doing the same on Linux, but not for both at the same time. Are there functions that would work even if they were compiled on either Linux or Windows?
I have seen tutorials on the internet for making multithreaded applications in C++ on
Share
You would need to use a library which contains an implementation for both
pthreadon Linux and the Win32 threading library on Windows (CreateThreadand friends).Boost thread is a popular choice which abstracts the system away.