当前位置:网站首页>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 .
边栏推荐
- 【js逆向】md5加密参数破解
- Redis源码学习(29),压缩列表学习,ziplist.c(二)
- 2022.2.15
- DID的使用指南,原理
- 《MATLAB 神经网络43个案例分析》:第30章 基于随机森林思想的组合分类器设计——乳腺癌诊断
- Redis publish subscription
- V79.01 Hongmeng kernel source code analysis (user mode locking) | how to use the fast lock futex (Part 1) | hundreds of blogs analyze the openharmony source code
- [MFC development (16)] tree control
- 串口转WIFI模块通信
- 19Mn6 German standard pressure vessel steel plate 19Mn6 Wugang fixed binding 19Mn6 chemical composition
猜你喜欢

电视机尺寸与观看距离

Foundation: 2 The essence of image

如何做好固定资产管理?易点易动提供智能化方案

Dynamic proxy

Nacos - gestion de la configuration

How can enterprises and developers take the lead in the outbreak of cloud native landing?

【MFC开发(16)】树形控件Tree Control

Share 7 books I read in the first half of 2022

《MATLAB 神经网络43个案例分析》:第30章 基于随机森林思想的组合分类器设计——乳腺癌诊断
![[MFC development (16)] tree control](/img/b9/1de4330c0bd186cfe062b02478c058.png)
[MFC development (16)] tree control
随机推荐
How to use OKR as the leadership framework of marketing department
目标检测的yolov3、4、5、6总结
Review of week 280 of leetcode
[MFC development (16)] tree control
Bimianhongfu queren()
Nacos - service discovery
挖财打新股安全吗
你了解数据是如何存储的吗?(C整型和浮点型两类)
Tita OKR: a dashboard to master the big picture
I would like to know the process of stock registration and account opening by mobile phone? In addition, is it safe to open a mobile account?
为什么LTD独立站就是Web3.0网站!
如何做好固定资产管理?易点易动提供智能化方案
SPL-介绍(一)
3、Modbus通讯协议详解
【C】 Summary of wrong questions in winter vacation
MySQL8.0学习记录17 -Create Table
如何解决固定资产管理和盘点的难题?
Pipeline detection of UAV Based on gazebo
2022 mechanical fitter (primary) examination summary and mechanical fitter (primary) reexamination examination
Glitch free clock switching technology