当前位置:网站首页>Differences among pipes, pipe passes and pipe States
Differences among pipes, pipe passes and pipe States
2022-07-28 10:15:00 【interval_ package】
The Conduit 、 Tube side 、 Difference of tube state
Sum up the comparison
| purpose | nature | |
|---|---|---|
| Tube side | Used for process synchronization | A data structure , It is convenient for us to manage a series of semaphores , At the same time, encapsulate the semaphore operation |
| The Conduit pipe | For process communication | pipe The communication of is based on the file system , that pipe It's actually a file , We passed this document IO To indirectly realize the communication between processes |
| Tube state | Control the permissions of the process | PCB One of the signs , Used to confirm the permission status of the current process |
Learn from others' articles :
Tube side
( Process synchronization ) Centralize shared variables and all operations that can be performed on shared variables in one module , An operating system or concurrent program is composed of several such modules , Because a module is usually short , The connection between modules is clear , Improved readability , Easy to maintain and modify , Correctness is easy to guarantee .
The Conduit
( Process of communication also socket、 mail 、 Semaphore 、 Shared memory 、 Message queue, etc )
The so-called pipeline , It is an open shared file connected between two processes , Dedicated to data communication between processes . The sending process can continuously write data streams from one end of the pipeline , The length of each write is variable ; The receiving process can read data from the other end of the pipe when needed , The readout unit length is also variable . obviously , The foundation of pipeline communication is file system .
Tube state
Tube state ( The system state ) V.S Eye state ( User mode )
CPU Alternate between operating system programs and user programs .
CPU The status of belongs to the program status word PSW One of . Most computer systems will CPU The execution status is divided into pipe status and target status .
Tube state is also called privilege state , System state or nuclear state of mind .CPU The complete set of instruction system can be executed in tube state . Usually , The operating system runs in tube mode .
Target state is also called normal state or user state . When the machine is in target state , The program can only execute non privileged instructions . The user program can only run in the target state , If the user program executes the privilege instruction in the target state , The hardware will interrupt , Controlled by the operating system , Privileged instruction execution is prohibited , This can prevent the user program from damaging the system intentionally or unintentionally .
The only way to change from the target state to the tube state is to interrupt .
From the pipe state to the target state can be achieved by modifying the program status word , This will be accompanied by the conversion from operating system programs to user programs .
边栏推荐
- Step 4 - user development environment settings
- 房地产数字化转型方案:全方位数智化系统运营,助力房企管控实效提升
- 定了!就在7月30日!
- 【云驻共创】企业数字化转型,华为云咨询与你同行
- 初识SuperMap iDesktop
- 2022-uni-app解析token标准的方式-使用jsrsasign-爬坑过了
- [esp32][esp idf] esp32s3 quickly build lvglv7.9
- Description of landingsite electronic label quppa firmware entering DFU status
- Context values traps and how to avoid or mitigate these traps in go
- QT | some summaries of signals and slots
猜你喜欢

Voice chat app - how to standardize the development process?
![[esp32][esp idf] esp32s3 quickly build lvglv7.9](/img/39/8efef047d0a9223b97819a54b5edf8.png)
[esp32][esp idf] esp32s3 quickly build lvglv7.9

什么样的知识付费系统功能,更有利于平台与讲师发展?

Digital transformation scheme of real estate: all-round digital intelligence system operation, helping real estate enterprises improve the effectiveness of management and control

B2B2C系统亮点是什么?如何助力珠宝首饰企业打造全渠道多商户商城管理体系

2022-uni-app解析token标准的方式-使用jsrsasign-爬坑过了

PHP生成二维码(学习)

In retaliation for the dismissal of the company, I changed all code comments of the project!

Illustrate three mainstream enterprise architecture models (recommended collection!)
JWT login authentication + token automatic renewal scheme, well written!
随机推荐
B2B2C系统亮点是什么?如何助力珠宝首饰企业打造全渠道多商户商城管理体系
uni-app进阶之生命周期
11、链表反转
死锁算法:银行家算法和安全性算法
21. 合并两个有序链表
基于ModelArts续写最伟大的作品【玩转华为云】
API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试
吴雄昂遭Arm罢免内幕:建私人投资公司,损害了股东利益?
Skillfully use NGX_ Lua makes traffic grouping
What are the highlights of B2B2C system? How to help jewelry enterprises build an omni channel multi merchant mall management system
10 minute quick start EVs [play Huawei cloud]
Kubernetes
ELK实时日志分析平台
ES(8.1)认证题目
上下文变量值(context values)陷阱及在 Go 中如何避免或缓和这些陷阱
Massive data topn problem
QT | some summaries of signals and slots
房地产数字化转型方案:全方位数智化系统运营,助力房企管控实效提升
Go json.Decoder Considered Harmful
选择供应商服务系统,是大健康产业企业迈向数字化转型的第一步