当前位置:网站首页>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 .
边栏推荐
- Redis源码学习(29),压缩列表学习,ziplist.c(二)
- 中小企业固定资产管理办法哪种好?
- Audio-AudioRecord create(一)
- TypeError: __init__() got an unexpected keyword argument ‘autocompletion‘
- Qt的模型与视图
- "Analysis of 43 cases of MATLAB neural network": Chapter 30 design of combined classifier based on random forest idea - breast cancer diagnosis
- Foundation: 2 The essence of image
- Model and view of QT
- There are many problems in sewage treatment, and the automatic control system of pump station is solved in this way
- 截图小妙招
猜你喜欢

NIO-零拷贝

SPL-安装与基本使用(二)

Bimianhongfu queren()

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

5mo3 UHI HII HII 17mn4 19Mn6 executive standard

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

Insert mathematical formula in MD document and mathematical formula in typora

Only in China! Alicloud container service enters the Forrester leader quadrant

3. Detailed explanation of Modbus communication protocol

Introduction to 18mnmo4-5 steel plate executive standard and delivery status of 18mnmo4-5 steel plate, European standard steel plate 18mnmo4-5 fixed rolling
随机推荐
【js逆向】md5加密参数破解
3、Modbus通讯协议详解
TypeError: __ init__ () got an unexpected keyword argument ‘autocompletion‘
There are many problems in sewage treatment, and the automatic control system of pump station is solved in this way
中小企业固定资产管理办法哪种好?
Redis源码学习(29),压缩列表学习,ziplist.c(二)
Field agricultural irrigation system
如何解决固定资产管理和盘点的难题?
【C】 Summary of wrong questions in winter vacation
MATLAB【函数求导】
日常办公耗材管理解决方案
2022 examination summary of quality controller civil engineering direction post skills (quality controller) and reexamination examination of quality controller civil engineering direction post skills
Audio audiorecord create (I)
DID的使用指南,原理
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?
Do you know how data is stored? (C integer and floating point)
機動目標跟踪——當前統計模型(CS模型)擴展卡爾曼濾波/無迹卡爾曼濾波 matlab實現
SPL installation and basic use (II)
固定资产管理系统让企业动态掌握资产情况
C语言学生信息管理系统