Understanding of multi-threaded concurrent, parallel, threads, processes

Understanding of multi-threaded concurrent, parallel, threads, processes

1: First understood concurrent, parallel

Concurrency: refers to two or more events occur at the same time period

Here Insert Picture Description

Parallel: Refers to two or more events occur at the same time

Here Insert Picture Description

2: Process-Thread

  • Process: refers to an application running in memory, each process has a separate memory space , an application can run multiple processes at the same time, the process is a program execution **, reflects the course of time ** ( task Manager is reflected in the process )

Here Insert Picture Description

  • Thread: A thread is a unit of execution process, the current process is responsible for implementing the program, a process that at least one thread, but also can have multiple threads (computer butler can killing the virus at the same time, rubbish reflected thread)

Here Insert Picture Description

Published 12 original articles · won praise 12 · views 2281

Guess you like

Origin blog.csdn.net/qq_44333505/article/details/105211216