Is there a website like Hackerank that has multi-threading problems in C++

Oct 13, 2018 at 10:57pm
I am trying to learn all I can about multi threading in C++, but reading and watching videos only go so far. I need problems, but where can I find those problems?
Oct 15, 2018 at 9:05am
See this:

https://www.tutorialcup.com/cplusplus/multithreading.htm
http://www.tutorialspoint.com/cplusplus/cpp_multithreading

The latter actually a bit dated. Better use std::thread instead of pthread_...(). See:

http://www.cplusplus.com/reference/thread/thread/
http://www.cplusplus.com/reference/multithreading/

The most important thing to konw about threads is to protect the variables that are shared across two or more threads. Apart from this there is not much more secrets behind it.
Last edited on Oct 15, 2018 at 9:11am
Oct 16, 2018 at 12:01am
But they don't have any problems? Thanks for effort though.
Oct 16, 2018 at 9:46am
What about creating a producer-consumer type app?
One thread could read a large file in junks and the other thread performs some operation on the data and writes it to a file.
Topic archived. No new replies allowed.