当前位置:网站首页>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:00 【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]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231639386392.html
边栏推荐
- On the security of key passing and digital signature
- Introduction notes to PHP zero Foundation (13): array related functions
- Custom implementation of Baidu image recognition (instead of aipocr)
- 基于GPU实例的Nanopore数据预处理
- What is homebrew? And use
- Disk management and file system
- Solution of garbled code on idea console
- Oracle data pump usage
- Public variables of robotframework
- 如何建立 TikTok用户信任并拉动粉丝增长
猜你喜欢
Solution of garbled code on idea console
Best practice of cloud migration in education industry: Haiyun Jiexun uses hypermotion cloud migration products to implement progressive migration for a university in Beijing, with a success rate of 1
Summary according to classification in sail software
Query the data from 2013 to 2021, and only query the data from 2020. The solution to this problem is carried out
Project framework of robot framework
批量制造测试数据的思路,附源码
面试百分百问到的进程,你究竟了解多少
Hyperbdr cloud disaster recovery v3 Release of version 3.0 | upgrade of disaster recovery function and optimization of resource group management function
JMeter setting environment variable supports direct startup by entering JMeter in any terminal directory
深度学习100例 | 第41天-卷积神经网络(CNN):UrbanSound8K音频分类(语音识别)
随机推荐
Use case labeling mechanism of robot framework
漫画:什么是IaaS、PaaS、SaaS?
How magical is the unsafe class used by all major frameworks?
Best practice of cloud migration in education industry: Haiyun Jiexun uses hypermotion cloud migration products to implement progressive migration for a university in Beijing, with a success rate of 1
Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme
JSP learning 1
File upload and download of robot framework
1959年高考数学真题
Use if else to judge in sail software - use the title condition to judge
Summary according to classification in sail software
04 Lua 运算符
ESXi封装网卡驱动
Report FCRA test question set and answers (11 wrong questions)
欣旺达:HEV和BEV超快充拳头产品大规模出货
05 Lua control structure
◰GL-阴影贴图核心步骤
There is a problem with the light switch from 1 to 100
The solution of not displaying a whole line when the total value needs to be set to 0 in sail software
Oracle data pump usage
Easyexcel reads the geographical location data in the excel table and sorts them according to Chinese pinyin