今天开始更新操作系统高频面试题英文版。同样也分为 Basic、Intermediate、Advanced 三部分。下面是 Basic 部分。音频文件下方获取。
【OS】操作系统高频面试题英文版(1)
【OS】操作系统高频面试题英文版(2)
【OS】操作系统高频面试题英文版(3)
Operating System (OS) is basically a software program that manages and handles all resources of a computer such as hardware and software. The first OS was introduced in the early 1950s known as GMOs. An OS is responsible for managing, handling, and coordinating overall activities and sharing of computer resources. It acts as an intermediary among users of computer and computer hardware.
操作系统(OS)基本上是一个软件程序,它管理和处理计算机的所有资源,例如硬件和软件。第一个操作系统是在 1950 年代初期引入的,称为 GMO。操作系统负责管理、处理和协调整体活动以及计算机资源的共享。它充当计算机和计算机硬件用户之间的中介。
Functions of OS:
There are many functions of the OS. Some of the important functions of OS are given below:
操作系统的功能:操作系统
操作系统的功能很多。操作系统的一些重要功能如下:
OS is the most essential and vital part of a computer without which it is considered useless. It enables an interface or acts like a link for interaction between computer software that is installed on OS and users. It also helps to communicate with hardware and also maintains balance among hardware and CPU. It also provides services to users and a platform for programs to run on. It performs all common tasks applications require.
操作系统是计算机中最基本和最重要的部分,没有它计算机就被认为是不实用的。它为安装在操作系统上的计算机软件和用户之间的交互提供接口或充当链接。它还有助于与硬件进行通信,并保持硬件和 CPU 之间的平衡。它还为用户提供服务,为程序运行提供平台。它执行应用程序所需的所有常见任务。
The main purpose of an OS is to execute user programs and make it easier for users to understand and interact with computers as well as run applications. It is specially designed to ensure that the computer system performs better by managing all computational activities. It also manages computer memory, processes, and operation of all hardware and software.
操作系统的主要目的是执行用户程序,使用户更容易理解、与计算机交互以及运行应用程序。它经过专门设计,通过管理所有计算活动来确保计算机系统性能更好。它还管理计算机内存、进程以及所有硬件和软件的操作。
Types of OS:
操作系统类型:
A Multiprocessor system is a type of system that includes two or more CPUs. It involves the processing of different computer programs at the same time mostly by a computer system with two or more CPUs that are sharing single memory.
多处理器系统是一种包括两个或更多 CPU 的系统。它涉及同时处理不同的计算机程序,主要由具有两个或多个共享单个内存的 CPU 的计算机系统进行。
Benefits:
好处:
RAID (Redundant Arrays of Independent Disks) is a method used to store data on Multiple hard disks therefore it is considered as data storage virtualization technology that combines multiple hard disks. It simply balances data protection, system performance, storage space, etc. It is used to improve the overall performance and reliability of data storage. It also increases the storage capacity of the system and its main purpose is to achieve data redundancy to reduce data loss.
RAID(独立冗余磁盘阵列)是一种用于将数据存储在多个硬盘上的方法,因此被认为是组合多个硬盘的数据存储虚拟化技术。它简单地平衡数据保护、系统性能、存储空间等,用于提高数据存储的整体性能和可靠性。它还增加了系统的存储容量,其主要目的是实现数据冗余以减少数据丢失。
Different levels of RAID
Nowadays, RAID is available in various schemes or RAID level as given below:
不同级别的 RAID
如今,RAID 可用于各种方案或 RAID 级别,如下所示:
GUI (Graphical User Interface) is basically a type of user interface that allows users to use graphics to interact with OS. GUI is created because it is more user-friendly, less complex, and easier to understand rather than a command-line interface. Its main goal is to increase efficiency and ease of use. Instead of having to memorize commands, users can just click on a button to simply execute the procedure. Examples of GUI include Microsoft Windows, macOS, Apple’s iOS, etc.
GUI(图形用户界面)基本上是一种用户界面,允许用户使用图形与操作系统进行交互。创建 GUI 是因为它比命令行界面更易于使用、不太复杂且更易于理解。其主要目标是提高效率和易用性。用户无需记住命令,只需单击一个按钮即可执行该过程。GUI 的示例包括 Microsoft Windows、macOS、Apple 的 iOS 等。
The pipe is generally a connection among two or more processes that are interrelated to each other. It is a mechanism that is used for inter-process communication using message passing. One can easily send information such as the output of one program process to another program process using a pipe. It can be used when two processes want to communicate one-way i.e., inter-process communication (IPC).
管道通常是两个或多个相互关联的进程之间的连接。它是一种使用消息传递进行进程间通信的机制。人们可以使用管道轻松地将诸如一个程序进程的输出之类的信息发送到另一个程序进程。它可以在两个进程想要进行单向通信时使用,即进程间通信(IPC)。
There are basically two atomic operations that are possible:
基本上有两种可能的原子操作:
It is generally a program that initializes OS during startup i.e., first code that is executed whenever computer system startups. OS is loaded through a bootstrapping process or program commonly known as booting. Overall OS only depends on the bootstrap program to perform and work correctly. It is fully stored in boot blocks at a fixed location on the disk. It also locates the kernel and loads it into the main memory after which the program starts its execution.
它通常是在启动期间初始化 OS 的程序,即在计算机系统启动时执行的第一个代码。操作系统是通过通常称为 booting 的引导过程或程序加载的。整个操作系统仅依赖于引导程序才能正常执行和工作。它完全存储在磁盘上固定位置的引导块中。它还定位内核并将其加载到主内存中,然后程序开始执行。
Demand paging is a method that loads pages into memory on demand. This method is mostly used in virtual memory. In this, a page is only brought into memory when a location on that particular page is referenced during execution. The following steps are generally followed:
请求式页面调度是一种按需将页面加载到内存中的方法。这种方法多用于虚拟内存。在这种情况下,只有在执行期间引用该特定页面上的位置时,才会将页面带入内存。一般遵循以下步骤:
Real Time Operating System (RTOS) is an operating system that is used for real-time applications i.e., for those applications where data processing should be done in a fixed and small measure of time. It performs much better on tasks that are needed to be executed within a short time. It also takes care of execution, monitoring, and all-controlling processes. It also occupies less memory and consumes fewer resources.
Types of RTOS:
RTOS is used in Air traffic control systems, Anti-lock Brake Systems, and Heart pacemakers.
实时操作系统 (RTOS) 是一种用于实时应用程序的操作系统,即,用于那些应在固定且小时间度量内完成数据处理的应用程序。它在需要在短时间内执行的任务上表现得更好。它还负责执行、监视和所有控制过程。它还占用更少的内存,消耗更少的资源。
实时操作系统的类型:
RTOS 用于空中交通管制系统、防抱死制动系统和心脏起搏器。
Process synchronization is basically a way to coordinate processes that use shared resources or data. It is very much essential to ensure synchronized execution of cooperating processes so that will maintain data consistency. Its main purpose is to share resources without any interference using mutual exclusion. There are two types of process synchronization:
进程同步基本上是一种协调进程的方法,这些进程使用共享资源或数据。确保协作流程的同步执行非常重要,这样才能保持数据的一致性。它的主要目的是使用互斥来共享资源而不受任何干扰。有两种类型的进程同步:
IPC (Interprocess Communication) is a mechanism that requires the use of resources like a memory that is shared between processes or threads. With IPC, OS allows different processes to communicate with each other. It is simply used for exchanging data between multiple threads in one or more programs or processes. In this mechanism, different processes can communicate with each other with the approval of the OS.
Different IPC Mechanisms:
IPC(进程间通信)是一种需要使用共享资源(如在进程或线程之间共享的内存)的机制。通过 IPC,操作系统允许不同的进程相互通信。它仅用于在一个或多个程序或进程中的多个线程之间交换数据。在这种机制中,不同的进程可以在操作系统的批准下相互通信。
不同的 IPC 机制:
Main memory: Main memory in a computer is RAM (Random Access Memory). It is also known as primary memory or read-write memory or internal memory. The programs and data that the CPU requires during the execution of a program are stored in this memory.
Secondary memory: Secondary memory in a computer are storage devices that can store data and programs. It is also known as external memory or additional memory or backup memory or auxiliary memory. Such storage devices are capable of storing high-volume data. Storage devices can be hard drives, USB flash drives, CDs, etc.
Primary Memory | Secondary Memory |
---|---|
Data can be directly accessed by the processing unit. | Firstly, data is transferred to primary memory and after then routed to the processing unit. |
It can be both volatile and non-volatile in nature. | It is non-volatile in nature. |
It is more costly than secondary memory. | It is more cost-effective or less costly than primary memory. |
It is temporary because data is stored temporarily. | It is permanent because data is stored permanently. |
In this memory, data can be lost whenever there is a power failure. | In this memory, data is stored permanently and therefore cannot be lost even in case of power failure. |
It is much faster than secondary memory and saves data that is currently used by the computer. | It is slower as compared to primary memory and saves different kinds of data in different formats. |
It can be accessed by data. | It can be accessed by I/O channels. |
**主存储器:**计算机中的主存储器是 RAM(随机存取存储器)。它也被称为主存储器或读写存储器或内部存储器。CPU 在执行程序期间需要的程序和数据都存储在该存储器中。
**辅助存储器:**计算机中的辅助存储器是可以存储数据和程序的存储设备。它也被称为外部存储器或附加存储器或备份存储器或辅助存储器。这种存储设备能够存储大量数据。存储设备可以是硬盘驱动器、USB 闪存驱动器、CD 等。
主内存 | 辅助记忆 |
---|---|
处理单元可以直接访问数据。 | 首先,数据被传输到主存储器,然后被路由到处理单元。 |
它本质上可以是易失性的和非易失性的。 | 它本质上是非易失性的。 |
它比辅助存储器更昂贵。 | 它比主存储器更具成本效益或成本更低。 |
它是临时的,因为数据是临时存储的。 | 它是永久的,因为数据是永久存储的。 |
在此内存中,每当发生电源故障时,数据都可能丢失。 | 在此存储器中,数据被永久存储,因此即使在断电的情况下也不会丢失。 |
它比辅助存储器快得多,并且可以保存计算机当前使用的数据。 | 与主存储器相比,它速度较慢,并且以不同的格式保存不同类型的数据。 |
它可以通过数据访问。 | 它可以通过 I/O 通道访问。 |
Overlays is basically a programming method that divides processes into pieces so that instructions that are important and need can be saved in memory. It does not need any type of support from the OS. It can run programs that are bigger in size than physical memory by only keeping only important data and instructions that can be needed at any given time.
覆盖基本上是一种编程方法,它将进程划分为多个部分,以便可以将重要且需要的指令保存在内存中。它不需要操作系统提供任何类型的支持。它可以运行比物理内存更大的程序,只保留在任何给定时间可能需要的重要数据和指令。
Some of the top OS’s that are used mostly are given below: