Just adding threads won't make your code run fast

Arpit Bhayani

Arpit Bhayani

Sep 20, 2022 • 1 min read


Just adding threads won’t make your code run fast.

You need to understand the kind of workload, the capability of the language, and the data access pattern of objects in the shared memory.

If done irresponsibly, adding threads will affect the correctness of your business logic.

Arpit Bhayani

Principal Engineer II at Razorpay - building Agent Studio, Ex-staff engg at GCP Memorystore & Dataproc, Creator of DiceDB, ex-Amazon Fast Data, ex-Director of Engg. SRE and Data Engineering at Unacademy. I spark engineering curiosity through my no-fluff engineering videos on YouTube and my courses