The simple explanation is that you have a job and you get one person to do the job.
This single person is like a stream on a computer.
One person can do one at a time, therefore, to complete a task, he performs tasks of the task, one task at a time, one operation for each task at a time.
To speed things up, you can add more people to the same job. For example, let's say you need to draw a house. You hire 4 people for this.
These 4 people can look like 4 threads, because they work with the same resources (the same house, the same buckets of paint), and they can share the work.
The process would be akin to painting this house.
This simple explanation breaks down a bit when it comes to machines that lack processor cores to run all threads at the same time, but I will ignore it here.
Lasse Vågsæther Karlsen
source share