当前位置:网站首页>How much do you know about the process of the interview
How much do you know about the process of the interview
2022-04-23 16:41:24 【Yan Yang】
operating system (operating system, abbreviation OS) It is a computer program that manages computer hardware and software resources . operating system Need to deal with, such as managing and configuring memory 、 Determine the priority of supply and demand of system resources 、 Control input device and output device 、 Basic affairs such as operation network and management file system . operating system It also provides an interface for the user to interact with the operating system .
The operating system is flooded in our life and work , The more common ones are Windows,Unix,Linux,Ios, Hong Meng et al .
Catalog
One 、 Positioning of the operating system
Two 、 What is a process / Mission
3、 ... and 、 Process control block abstraction
Four 、CPU Distribute —— Process scheduling (Process Scheduling)
5、 ... and 、 Memory allocation —— memory management
6、 ... and 、 Interprocess communication
One 、 Positioning of the operating system
Two basic functions of the operating system :
1、 Prevent hardware abuse by out of control applications
2、 Provide simple and consistent mechanisms for applications to control complex and often disparate hardware devices
Two 、 What is a process / Mission
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 early process oriented computer architecture , A process is the basic execution entity of a program ; 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 .
process It's an abstraction of a running program by the operating system , In other words , You can think of a process as a running process of a program
3、 ... and 、 Process control block abstraction
Any real affairs should be managed inside the computer , It needs to be abstracted into a set of related , Integrated data . stay JAVA in , We can go through class / object To describe this feature .
// The following code is JAVA Pseudo code form of code , Focus on explaining , Can't run directly
class PCB {
// Unique identification of the process pid
// Process associated program information , For example, the area where the program is loaded into memory
// The resources allocated to this resource
// Schedule scheduling information
}
such , every last PCB Object represents a real program , That's the process .
The operating system then uses this data structure , For example, a linear table , Search tree, etc PCB Objects are organized , Easy to manage Add, delete, query and modify when
Four 、CPU Distribute —— Process scheduling (Process Scheduling)
To facilitate discussion and understanding , Most of our scenarios assume a single CPU Single core computer
Operating system pair CPU Allocation of resources , Using a time model —— Different threads are used in different time periods CPU resources .
parallel vs Concurrent Kernel mode vs User mode :
5、 ... and 、 Memory allocation —— memory management
The allocation of memory resources by the operating system , Using a spatial model —— Different processes use different areas of memory , They don't interfere with each other
6、 ... and 、 Interprocess communication
As mentioned above , A process is the smallest unit of resource allocation by the operating system , This means that each process cannot feel each other's existence , This is the original intention of the operating system to abstract the concept of process , This brings about a process to process relationship “ Isolation, ”.
But modern applications , To fulfill a complex business requirement , It is often impossible to complete independently through a process , There is always a need for coordination between processes , therefore , Between processes ” Information switching “ The needs of . The demand of interprocess communication arises at the historic moment .
at present , The interprocess communication mechanisms provided by mainstream operating systems are as follows :
1、 The Conduit
2、 Shared memory
3、 file
4、 The Internet
5、 Semaphore
6、 The signal
among , Network is a kind of relatively special IPC Mechanism , In addition to supporting communication between two processes with the host , It also supports communication between processes on different hosts within the same network .
版权声明
本文为[Yan Yang]所创,转载请带上原文链接,感谢
/html/kxdihW.html
边栏推荐
- 如何建立 TikTok用户信任并拉动粉丝增长
- 无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
- loggie 源码分析 source file 模块主干分析
- 关于局域网如何组建介绍
- PyTorch:train模式与eval模式的那些坑
- Dlib of face recognition framework
- NVIDIA graphics card driver error
- Installation and management procedures
- 5-minute NLP: text to text transfer transformer (T5) unified text to text task model
- Easyexcel reads the geographical location data in the excel table and sorts them according to Chinese pinyin
猜你喜欢
-
MySQL master-slave synchronization pit avoidance version tutorial
-
Construction of promtail + Loki + grafana log monitoring system
-
Public variables of robotframework
-
File upload and download of robot framework
-
Selenium IDE and XPath installation of chrome plug-in
-
Project framework of robot framework
-
Use case execution of robot framework
-
Use case labeling mechanism of robot framework
-
Deepinv20 installation MariaDB
-
Pycham connects to the remote server and realizes remote debugging
随机推荐
- DDT + Excel for interface test
- Pytorch: the pit between train mode and eval mode
- Introduction to how to set up LAN
- Loggie source code analysis source file module backbone analysis
- How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
- How to build tiktok user trust and drive fan growth
- 【PIMF】OpenHarmony啃论文俱乐部—在ACM Survey闲逛是什么体验
- Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme
- English | day15, 16 x sentence true research daily sentence (clause disconnection, modification)
- Knowledge points and examples of [seven input / output systems]
- 详解牛客----手套
- How does flash cache data in memory?
- 批量制造测试数据的思路,附源码
- 聊一聊浏览器缓存控制
- 深入了解3D模型相关知识(建模、材质贴图、UV、法线),置换贴图、凹凸贴图与法线贴图的区别
- 博士申请 | 厦门大学信息学院郭诗辉老师团队招收全奖博士/博后/实习生
- ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
- True math problems in 1959 college entrance examination
- MySQL master-slave replication
- ByteVCharts可视化图表库,你想要的我都有
- ◰GL-着色器处理程序封装
- ◰GL-阴影贴图核心步骤
- ∑GL-透视投影矩阵的推导
- Pseudo Distributed installation spark
- Zhongang Mining: Fluorite Flotation Process
- Dancenn: overview of byte self-developed 100 billion scale file metadata storage system
- Modify the test case name generated by DDT
- 面试百分百问到的进程,你究竟了解多少
- Encapsulating the logging module
- Camtasia2022软件新增功能介绍
- PyMySQL
- Mock test
- Mock test using postman
- 正则过滤内网地址和网段
- 信息摘要、数字签名、数字证书、对称加密与非对称加密详解
- 计算饼状图百分比
- 扫码登录的原理你真的了解吗?
- vscode如何比较两个文件的异同
- Do you really understand the principle of code scanning login?
- Calculate pie chart percentage