首页 > 其他分享 >Operating System Overview

Operating System Overview

时间:2023-06-13 16:12:32浏览次数:28  
标签:What process Overview System system operating memory Operating processor

Computer System Overview

1.1What are the three main purposes of an operating system?
(1) Interface between the hardware and user;
(2) manage the resource of hardware and software;
(3) abstraction of resource;

1.2 List the four steps that are necessary to run a program on a completely dedicated machine.
Preprocessing > Processing > Linking > Executing.

1.3: In general terms, what are the four distinct actions that a machine instruction can specify?

These actions fall into four categories:

  1. Processor-memory: Data may be transferred from processor to memory or from memory to processor.
  2. Processor-I/O: Data may be transferred to or from a peripheral device by transferring between the processor and an I/O module.
  3. Data processing: The processor may perform some arithmetic or logic operation on data.
  4. Control: An instruction may specify that the sequence of execution be altered.

1.4: What is an interrupt?

An interrupt is a mechanism by which other modules (I/O, memory) may interrupt the normal sequencing of the processor.

1.5: How are multiple interrupts dealt with?

Two approaches can be taken to dealing with multiple interrupts. The first is to disable interrupts while an interrupt is being processed. A second approach is to define priorities for interrupts and to allow an interrupt of higher priority to cause a lower-priority interrupt handler to be interrupted.

1.6: What characteristics distinguish the various elements of a memory hierarchy?

The three key characteristics of memory are cost, capacity, and access time.

1.8: What is the difference between a multiprocessor and a multicore system?

A multicore computer is a special case of a multiprocessor, in which all of the processors are on a single chip.

Operating System Overview

2.1: What are three objectives of an OS design?

  1. Convenience: An operating system makes a computer more convenient to use.
  2. Efficiency: An operating system allows the computer system resources to be used in an efficient manner.
  3. Ability to evolve: An operating system should be constructed in such a way as to permit the effective development, testing, and introduction of new system functions without interfering with service.

2.2: What is the kernel of an OS?

The kernel is a portion of the operating system that includes the most heavily used portions of software. Generally, the kernel is maintained permanently in main memory. The kernel runs in a privileged mode and responds to calls from processes and interrupts from devices.

2.3: What is multiprogramming?

Multiprogramming is a mode of operation that provides for the interleaved execution of two or more computer programs by a single processor.

2.4: What is a process?

A process is a program in execution. A process is controlled and scheduled by the operating system.

2.5: How is the execution context of a process used by the OS?

The execution context, or process state, is the internal data by which the operating system is able to supervise and control the process. This internal information is separated from the process, because the operating system has information not permitted to the process. The context includes all of the information that the operating system needs to manage the process and that the processor needs to execute the process properly. The context includes the contents of the various processor registers, such as the program counter and data registers. It also includes information of use to the operating system, such as the priority of the process and whether the process is waiting for the completion of a particular I/O event.

2.8: Describe the round-robin scheduling technique.

Round robin is a scheduling algorithm in which processes are activated in a fixed cyclic order; that is, all processes are in a circular queue. A process that cannot proceed because it is waiting for some event (e.g. termination of a child process or an input/output operation) returns control to the scheduler.

2.10: What is multithreading?

Multithreading is a technique in which a process, executing an application, is divided into threads that can run concurrently.

标签:What,process,Overview,System,system,operating,memory,Operating,processor
From: https://www.cnblogs.com/avananami/p/17477830.html

相关文章

  • Operating System Process and Thread
    ProcessDescriptionandControl3.1:Whatisaninstructiontrace?Aninstructiontraceforaprogramisthesequenceofinstructionsthatexecuteforthatprocess.3.2:Explaintheconceptofaprocessandmarkitsdifferencesfromaprogram.(GPT)Aproc......
  • Codeforces Beta Round #22 (Div. 2 Only)-C. System Administrator
    原题链接C.SystemAdministratortimelimitpertestmemorylimitpertestinputoutputBobgotajobasasystemadministratorinXcorporation.Hisfirsttaskwastoconnec......
  • 关于VS2022使用EF生成实体模型报错的问题:运行转换:System.NullReferenceException:对象
    起因:之前版本vs2022生成EF模型一直没有问题,在更新了最新的vs2022之后,版本号17.6+,出现此问题:运行转换:System.NullReferenceException:对象引用未设置为对象的示例。在Microsoft.VisualStudio.TextTemplatingD21DB4521EFD493FAE41A9CE9DA80C875F3084552987498BD518713BDE91D14A......
  • System.SysUtils.TStringHelper
    大小写转换:functionToLower:string;functionToLower(LocaleID:TLocaleID):string;functionToLowerInvariant:string;functionToUpper:string;functionToUpper(LocaleID:TLocaleID):string;functionToUpperInvariant:string;classfunctionLowerCase(cons......
  • System(系统类)
    System(系统类)运行环境:Java程序的运行平台1、System类提供了一些静态属性和方法,允许通过类名直接调用。2、System类提供了代表标准输入、标准输出、错误输出的类属性。3、System类提供了一些静态方法用于访问环境变量、系统属性的方法。知识点1:System(系统类)提供的属性研究System.o......
  • Database System Concepts——读书笔记 第二章 关系模型简介
    关系模型简介在关系模型中,术语relation用于指代table,而术语tuple用于指代row。类似地,术语attribute(属性)指的是表中的一column(列)。我们必须区分数据库模式和数据库实例,前者是数据库的逻辑设计,后者是给定时刻数据库中数据的快照。关系的模式指的是它的逻辑设计,而关系的实例指的......
  • Database System Concepts——读书笔记 第一章 介绍
    数据库系统概念——第一章数据库管理系统(DBMS)由相互关联的数据集合和访问这些数据的程序集合组成。数据库相对于文件系统,更规范化,提供条件查询能力,避免冗余数据。类似操作系统于底层硬件,提供抽象能力,易用性。physicallevel->logicallevel->viewlevelinstance和schem......
  • Database System Concepts——读书笔记 第三、四、五章 SQL简介
    SQL简介关系代数运算和SQL运算之间有着密切的联系。一个关键的区别是,与关系代数不同,SQL允许重复与select子句不同,union联合操作会自动消除重复项.如果我们想保留所有的副本,我们就必须用“unionall”代替“union.intersectall,exceptall您可以验证,如果r.A为null,则“1<r.A”......
  • 关于The JSON value could not be converted to System.DateTime的解决方案
    如下json格式提交到后台后报:TheJSONvaluecouldnotbeconvertedtoSystem.DateTime.Path:$.beginTime|LineNumber:3|BytePositionInLine:33.{"beginTime":"2023-06-08T08:00:00"}造成这个错误的原因为程序无法正常解析该json,主要是为了提升执行效率;Sys......
  • windows 10 wsl 环境 docker 无法正常启动 -The system cannot find the file specif
    错误信息:errorduringconnect:inthedefaultdaemonconfigurationonWindows,thedockerclientmustberunwithelevatedprivilegestoconnect:Get"http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json":open//./pipe/docker_engine:Thesy......