Process and thread concept

xiaoxiao2021-03-19  224

To be simple, an app has at least one process, and there is at least one thread in a process.

The process is a program with certain independent functions about a run activity on a certain data collection, and the process is system for capital.

A independent unit of source allocation and scheduling.

The thread is an entity of the process, which is the basic unit of CPU scheduling and dispatch. It is a base that is smaller than the process.

This unit. Threaders do not have system resources, only have a certain resource that is essential in operation (such as programmes

Numerals, a set of registers and stacks, but it can have all the other thread sharing processes in the same process.

Department resources.

A thread can create and revoke another thread; between multiple threads in the same process can be implemented.

That is, an process can be implemented simultaneously by its plurality of threads.

In fact, the process of slightly more complicated applications is performed by multi-threaded parallelism because complex programs

The row requires more registers, stacks, counters, and more pointer operations to hold program ordered and efficient execution.

And a single thread cannot do it.

转载请注明原文地址:https://www.9cbs.com/read-130099.html

New Post(0)