Threads/Multiple cores: Parallelism in C++ #2/3 (also hyperthreading)

Computer programs can be made faster by making them do many things simultaneously. Let’s study three categorical ways to accomplish that in GCC. In the second episode, we explore various alternative approaches to threads. The first episode can be found at:    • SIMD and Vectorization: Parallelism in C++...   The next episode:    • Offloading & CUDA: Parallelism in C++ #3/3...   As a plot device in this tool-assisted education video, a Mandelbrot fractal is rendered. Twitter:   / realbisqwit   Liberapay: https://liberapay.com/Bisqwit (alternatives at https://iki.fi/bisqwit/donate.html) Twitch:   / realbisqwit   Homepage: https://iki.fi/bisqwit/ What every programmer must know about memory: https://lwn.net/Articles/250967/ Bisqwit’s guide to OpenMP: https://bisqwit.iki.fi/story/howto/op... You can contribute subtitles: https://www.youtube.com/timedtext_vid... All downloads: — https://github.com/bisqwit/cpp_parall... Sorry about some of the botched pronunciations in the contributor thanks list, or about breaking some names into two parts! It was my first time using a teleprompter, and this particular software had a bug where it might wrap lines in such way that it reorders words. Background music: — Yoshi’s Island (SNES), Flower Garden All music is played through OPL3 synthesis. Sound effects and foley are mostly from YouTube Audio Library. Some are recorded from video games like The Guardian Legend, Duck Hunt, Earthbound, and Super Mario All-Stars. #Bisqwit #Parallelism #Tutorial #Programming #ThreadProgramming #MultiThreading