tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code08:56

Does std::endl fix your multithreaded prints? (C++)

mCoding ↗

From the creator

In C++, use '\n' instead of std::endl in most situations. A common myth is that one exception to this guideline is multithreading, that std::endl protects you from mangled text caused by multiple threads printing at the same time. Is this myth true? Does std::endl protect you in a multithreaded context? We investigate in this video. CONTEST CURRENTLY CLOSED! The winners: Jean Vitor, ThatCowThatGoesMoo, Alireza Ahani, Olorin, Frazzer951, Exercitus! OFFICIAL CONTEST RULES: 1. All entries must comply with the YouTube community guidelines ( http://www.youtube.com/t/community_guidelines) and YouTube Terms of Service (http://www.youtube.com/static?gl=US&template=terms). Entries that violate YouTube guidelines are automatically disqualified. 2. YouTube is not a sponsor of the contest and viewers are required to release YouTube from any liability related to the contest. 3. Privacy notice: no personal data will be collected for this contest. 4. In order to enter, you must (a) be one of my subscribers, AND (b) make a top-level comment to the video including #clion somewhere in the comment. 5. The contest is free, there is no fee required to enter. 6. Winners will be chosen randomly 1 week after the date the video went live from all users who have entered and not been disqualified. 7. Each winner will be notified via a comment reply from me that details what prize was won (e.g. "Congratulations! You have won XYZ. Please email me."). I will ask the winner to contact me by email, and I

Published 2022-01-10 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code