+ 1
Tell me about threads
Hey friends, I couldn't find anything at the lessons and the documentation wasn't much helpful. Can you guys give me some explanation, and if possible some examples, to working with std::thread, std::promise, std::future and std::atomic. I only know that std:: thread is making a thread (that should have been obvious), that std::promise store a mutual variable of the threads and std::future read the content of the variable, i don't know anything about std::atomic besides that it is a boolean. Also, please let me know if there are other means of working with threads in c++
1 ответ
+ 23
Yes! I have answered a bit similar QUESTIOn before 1 month..
amit avinoam have a look :D
https://www.sololearn.com/Discuss/2612194/?ref=app