当前位置:网站首页>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 .
边栏推荐
- Matlab tips (23) matrix analysis -- simulated annealing
- Insert mathematical formula in MD document and mathematical formula in typora
- 软件工程师面试刷题网站、经验方法
- Intelligent water and fertilizer integrated control system
- Advanced C language pointer (Part 2)
- What is the material of 16mo3 steel plate? What is the difference between 16mo3 and Q345R?
- Matlab [functions and images]
- "Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
- C语言学生信息管理系统
- MAVROS发送自定义话题消息给PX4
猜你喜欢

NIO-零拷贝
![[MFC development (16)] tree control](/img/b9/1de4330c0bd186cfe062b02478c058.png)
[MFC development (16)] tree control

电脑小技巧

Guidelines and principles of did

Huawei machine test questions column subscription Guide

Principle and application of single chip microcomputer - off chip development

Glitch free clock switching technology

基于Gazebo的无人机管道检测

vscode自定义各个区域的颜色

Field agricultural irrigation system
随机推荐
串口转WIFI模块通信
DID的使用指南,原理
NFT监管要点和海外政策
It is designed with high bandwidth, which is almost processed into an open circuit?
公网集群对讲+GPS可视追踪|助力物流行业智能化管理调度
Share 7 books I read in the first half of 2022
SPL installation and basic use (II)
15Mo3 German standard steel plate 15Mo3 chemical composition 15Mo3 mechanical property analysis of Wuyang Steel Works
IT 技术电子书 收藏
你了解数据是如何存储的吗?(C整型和浮点型两类)
5mo3 UHI HII HII 17mn4 19Mn6 executive standard
动态代理
固定资产管理系统让企业动态掌握资产情况
Nacos - 服务发现
MySQL8.0学习记录17 -Create Table
中小企业固定资产管理办法哪种好?
Public network cluster intercom +gps visual tracking | help the logistics industry with intelligent management and scheduling
[deep analysis of C language] - data storage in memory
R语言观察日志(part24)--初始化设置
Field agricultural irrigation system