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

Offloading & CUDA: Parallelism in C++ #3/3 (also OpenMP, OpenACC, GPU & Coprocessors like Xeon Phi)

SIMD and Vectorization: Parallelism in C++ #1/3 (multitasking on single core)

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones

Zig 2026: No-AI Policy, $670K Foundation, Left GitHub & Why Zig Isn’t 1.0 - Andrew Kelley Explains

Why AI Can Never Escape Turing's 1936 Proof

Psychology of People With Extremely High IQ

Simulating Atoms in C++

When Celebrities Couldn’t Handle Sacha Baron Cohen’s ZERO Filter (Borat, Ali G, The Dictator)

How to use threads in C++11 (multitasking, mutual exclusion, etc.)

Android 17 sucks. So I put Linux on a phone.

How CPUs Interact with So Many Different Devices

All 7 Dimensions Explained in Detail (From 0D to Infinity)

the true reason C++ always wins

31 nooby C++ habits you need to ditch

Parallel computing in C++: OpenMP

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Professor Jiang: World War 3 Is About To Begin, Let Me Explain!

Your Programming Language Can't Understand You...

