← Dictionary
Dictionary · Dev

What is Concurrency?

It is the ability of a computer to manage multiple processes simultaneously and execute them in parts.

Overview

Computers actually do one thing at a time very quickly. Concurrency is a management style that makes you feel like you are doing all of the work at the same time by dividing a job into small parts and moving on to the next before one job is finished.

Analogy: It's like a cook mixing soup and chopping a salad at the same time; While doing one, he takes a short break from the other.

How it works

The processor processes tasks sequentially very quickly, giving the user the impression that they are all happening at the same time.

Where it is used

It is used in web servers, multi-user applications and modern operating systems.

Commonly confused with

It is confused with parallelism; Parallelism is literally two different processors doing two jobs at the same time, while concurrency is the timing of the jobs.

Frequently asked questions

Why is it important?

It ensures that the computer does not sit idle and can serve thousands of users at the same time.

Is it difficult to write code?

Yes, if two jobs conflict with each other at the same time, errors can occur and must be managed carefully.

Related terms

Related tools

This explanation was written in plain language for TreScout and machine-translated from the Turkish original · the Turkish version prevails. If something looks wrong or missing, write to hello@trescout.com. Read in Turkish →