register pressure means: too many variables per thread reduces occupancy

Why can't a computer thread be too busy?

Image: Da mocavi, CC BY-SA 4.0, via Wikimedia Commons

register pressure means: too many variables per thread reduces occupancy

Why can't a computer thread be too busy?

Imagine you're trying to cook dinner for a family of six. If you try to cook everything at once without planning, you'll end up with a messy kitchen and a burnt meal.

A computer thread is like cooking dinner. If you have too many tasks (like too many people in the kitchen) trying to cook at the same time, you won't be efficient. Too many tasks can slow down the process, just like too many cooks in the kitchen.

Example

If you're cooking pasta, chicken, and vegetables for six people, but you try to cook everything at once without any order, you'll waste time and energy.

Remember this

Too many tasks in a computer thread can slow down processing, just like too many cooks can slow down cooking.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath