stackyFACTS
Technology

Mutex locks force multi-threaded code into single lanes

HERE’S THE INTERESTING PART

Congratulations on building a multi-lane highway, now everyone must merge into one lane. Mutexes prevent data corruption by physically stopping parallel processors from accessing the same variable, temporarily throttling your supercomputer down to a crawl.

Mutex locks force multi-threaded code into single lanes
STACKY / Technology
One discovery leads to another.

Keep exploring facts in this topic.

Technology →
STACKY FOR IPHONE

A bigger world.
One discovery
at a time.

Keep discovering with Stacky. Interesting facts in an app that is always within reach.

Download on the App Store
ONE MORE DISCOVERY?

Keep exploring

All in this topic →
The plastic UFO cabins built for skiers
Technology

The plastic UFO cabins built for skiers

In 1968, Finnish architect Matti Suuronen decided the ultimate ski cabin should look exactly like a plastic flying saucer. He mass-produced these prefab…

Discover more
Object-oriented inheritance pulls unwanted dependencies
Technology

Object-oriented inheritance pulls unwanted dependencies

The classic 'gorilla banana' problem. You ask the code for a banana, but because of rigid object-oriented class structures, you get a banana being held by a…

Discover more
Why a Singleton is basically a global variable
Technology

Why a Singleton is basically a global variable

Slapping a fancy architectural name on a terrible coding habit. A Singleton ensures only one instance of a class exists, which is just a sophisticated way of…

Discover more
Why developers call suspicious code a Code Smell
Technology

Why developers call suspicious code a Code Smell

Code does not literally emit an odor, but developers genuinely use the term 'Code Smell' to describe logic that looks suspicious. A code smell doesn't mean…

Discover more
Microsoft co-founder Bill Gates famously had his sprawling, high-tech sixty-three-million-dollar Washington estate known as Xanadu 2.0 designed and modeled entirely using an Apple Macintosh computer.
Technology

Microsoft co-founder Bill Gates famously had his sprawling, high-tech sixty-three-million-dollar Washington estate known as Xanadu 2.0 designed and modeled entirely using an Apple Macintosh computer.

Microsoft co-founder Bill Gates famously had his sprawling, high-tech sixty-three-million-dollar Washington estate known as Xanadu 2.0 designed and modeled…

Discover more
Global variables remain accessible from absolutely anywhere
Technology

Global variables remain accessible from absolutely anywhere

The digital equivalent of leaving your house keys in the middle of a busy intersection. Declaring a variable globally means any random function in the entire…

Discover more
StackyMore discoveries in the app
Download on the App Store