当前位置:网站首页>Differences among tasks, threads and processes
Differences among tasks, threads and processes
2022-07-01 08:42:00 【Craftsman in Jianghu】
In most general ( time-sharing ) operating system ( Such as Linux,Windows) in , It is often said that threads 、 Process NOUN . In most real-time operating systems (RTOS)( Such as uCOS,FreeRTOS) in , It is often said that it is a task . What are the differences and connections between them ! See below .
Concept
process (Process) A program in a computer is about a running activity on a data set , Is the system resource allocation and scheduling of the basic unit , yes operating system The foundation of the structure . In modern thread oriented computer architecture , A process is a container for threads . A program is an instruction 、 Description of data and its organization , A process is an entity of a program .
Threads ( English :thread) yes operating system Be able to operate Dispatch Minimum unit of . It is contained in process In , yes process The actual operating unit in . A thread means process A single sequential control flow in , Multiple threads can be concurrent in one process , Each thread performs different tasks in parallel .
Mission It refers to people's daily life 、 Work 、 All kinds of purposeful activities engaged in recreational activities . In modern computers ,“ Mission ” It is also the basic work unit , In most real-time operating systems ( Such as uCOS,FreeRTOS) in , It's a real-time operating system Carry out operations Dispatch Minimum unit of .
Easy to understand
Illustrate with examples : If the operating system of a computer is compared to a large factory . A process is an independent workshop in a factory , Threads are assembly line workers in the workshop . At least one worker in each workshop , There can also be multiple workers . these “ Worker ” Sharing all the resources in this workshop .
Like in FreeRTOS in , Task and thread have the same meaning , All are operating system Carry out operations Dispatch Minimum unit of . stay FreeRTOS Up and running Whole procedure namely For a process , This process also contains many Threads ( Mission ), Some of these threads are created automatically by the system , Some are created manually for users .
边栏推荐
- Nacos - 配置管理
- [MFC development (16)] tree control
- 【C】 Summary of wrong questions in winter vacation
- 为什么LTD独立站就是Web3.0网站!
- ARM v7的体系结构A、R、M区别,分别应用在什么领域?
- What is the material of 16MnDR, the minimum service temperature of 16MnDR, and the chemical composition of 16MnDR
- In depth learning training sample amplification and tag name modification
- Redis publish subscription
- [MFC development (17)] advanced list control list control
- 《单片机原理及应用》—定时器、串行通信和中断系统
猜你喜欢

AVL树的理解和实现

截图小妙招

TypeError: __ init__ () got an unexpected keyword argument ‘autocompletion‘

Advanced level of C language pointer (Part 1)

MATLAB小技巧(16)矩阵特征向量特征值求解一致性验证--层次分析

Dynamic proxy

It is designed with high bandwidth, which is almost processed into an open circuit?

Screenshot tips

Vscode customize the color of each area

Share 7 books I read in the first half of 2022
随机推荐
NIO-零拷贝
19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
How can enterprises and developers take the lead in the outbreak of cloud native landing?
VSYNC+三重缓存机制+Choreographer
Intelligent water and fertilizer integrated control system
Dynamic proxy
Introduction to 18mnmo4-5 steel plate executive standard and delivery status of 18mnmo4-5 steel plate, European standard steel plate 18mnmo4-5 fixed rolling
如何做好固定资产管理?易点易动提供智能化方案
TypeError: __init__() got an unexpected keyword argument ‘autocompletion‘
Intelligent water conservancy solution
Matlab [function derivation]
Nacos - service discovery
Nacos - 服务发现
动态代理
我想知道手机注册股票开户的流程?另外,手机开户安全么?
深度学习训练样本扩增同时修改标签名称
Nacos - Configuration Management
[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]
"Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
What is the material of 16mo3 steel plate? What is the difference between 16mo3 and Q345R?