当前位置:网站首页>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 .
边栏推荐
- Programming with C language: calculate with formula: e ≈ 1+1/1+ 1/2! …+ 1/n!, Accuracy is 10-6
- MATLAB小技巧(23)矩阵分析--模拟退火
- 2022 examination summary of quality controller civil engineering direction post skills (quality controller) and reexamination examination of quality controller civil engineering direction post skills
- 2022.2.15
- "Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
- IT 技术电子书 收藏
- Centos7 shell脚本一键安装jdk、mongo、kafka、ftp、postgresql、postgis、pgrouting
- 又到年中,固定资产管理该何去何从?
- 如何做好固定资产管理?易点易动提供智能化方案
- The meaning of yolov5 training visualization index
猜你喜欢
TypeError: __ init__ () got an unexpected keyword argument ‘autocompletion‘
What is the material of 16mo3 steel plate? What is the difference between 16mo3 and Q345R?
Insert mathematical formula in MD document and mathematical formula in typora
19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
3、Modbus通讯协议详解
[MFC development (16)] tree control
Nacos - Configuration Management
Centos7 shell脚本一键安装jdk、mongo、kafka、ftp、postgresql、postgis、pgrouting
《单片机原理及应用》-片外拓展
Introduction to R language
随机推荐
The data analyst will be ruined without project experience. These 8 project resources will not be taken away
In depth learning training sample amplification and tag name modification
《单片机原理与应用》——并行IO口原理
分享2022上半年我读过的7本书
2022 examination summary of quality controller civil engineering direction post skills (quality controller) and reexamination examination of quality controller civil engineering direction post skills
Computer tips
《单片机原理及应用》-片外拓展
Insert mathematical formula in MD document and mathematical formula in typora
Properties of 15MnNiNbDR low temperature vessel steel, Wugang 15MnNiDR and 15MnNiNbDR steel plates
中断与其他函数共享变量、临界资源的保护
爬虫知识点总结
IT 技术电子书 收藏
【C】 Summary of wrong questions in winter vacation
《微机原理》—总线及其形成
目标检测的yolov3、4、5、6总结
FreeRTOS学习简易笔记
5mo3 UHI HII HII 17mn4 19Mn6 executive standard
Centos7 shell script one click installation of JDK, Mongo, Kafka, FTP, PostgreSQL, PostGIS, pgrouting
1. Connection between Jetson and camera
《微机原理》-绪论