操作系统选择题库答案及详解_Multiple Choice Questions

操作系统选择题库答案及详解_Multiple Choice Questions
操作系统选择题库答案及详解_Multiple Choice Questions

Multiple Choice Questions 1

Question1

The general role of an operating system is to:

选择一个答案

a. Provide a set of services to system users

b. Manage files for application programs

c. Act as an interface between various computers

d. None of the above

Feedback:

A. 为系统用户提供一系列服务

B. 为应用程序管理文件(这显然不是)

C. 作为多台计算机间的接口(应该是CPU与硬件之间的接口)

D. error

Question2

Information that must be saved prior to the processor transferring control to the interrupt handler routine includes:

选择一个答案

a. Program Status Word (PSW) & Contents of processor registers

b. Program Status Word (PSW)

c. None of the above

d. Program Status Word (PSW) & Location of next instruction

Feedback:

D.程序状态字和下个指令的位置P14

Question3

One accepted method of dealing with multiple interrupts is to:

选择一个答案

a. Service them in round-robin fashion

b. Disable all interrupts except those of highest priority

c. None of the above

d. Define priorities for the interrupts

Feedback:

处理多个中断的方法P18

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.

A. 轮循服务(显然错误)

B. 只服务优先级高的,忽视优先级低的

C. error

D. 为这些中断定义优先级

Question4

In a uniprocessor system(单处理器系统), multiprogramming(多道程序设计) increases processor efficiency by:

选择一个答案

a. Taking advantage of time wasted by long wait interrupt handling

b. Eliminating all idle processor cycles

c. All of the above

d. Increasing processor speed

Feedback:

A.利用等待中断的时间P18

Question5

As one proceeds down the memory hierarchy (i.e., from inboard memory to offline storage), the following condition(s) apply:

选择一个答案

a. Decreasing capacity

b. Increasing access time

c. All of the above

d. Increasing cost per bit

Feedback:

A.容量↑

B.访问时间↑

C.error

D.价格↓

Question6

Small, fast memory located between the processor and main memory is called

选择一个答案

a. WORM memory

b. CD-RW memory

c. None of the above

d. Cache memory

Feedback:

D.存储器的层次结构由上至下依次为:寄存器(processer),高速缓存,主存储器(memory),磁盘,磁带

Question7

When a new block of data is written into cache memory, the following determines which cache location the block will occupy:

选择一个答案

a. None of the above

b. Cache size

c. Block size

d. Write policy

Feedback:

Nothing will change.

高速缓冲存储器设计:cache size,block size,mapping function,replacement algorithm,write

policy.

Question8

The four main structural elements of a computer system are:

选择一个答案

a. None of the above

b. Processor, Registers, Main Memory & System Bus

c. Processor, Main Memory, I/O Modules & System Bus

d. Processor, Registers, I/O Modules & Main Memory

Feedback:

计算机有四个主要的结构化部件:处理器、主存储器、输入/输出模块、系统总线P6

Question9

The two basic types of processor registers are:

选择一个答案

a. User-visible and Control/Status registers

b. Control and Status registers

c. User-visible and user-invisible registers

d. None of the above

Feedback:

用户可见寄存器:数据寄存器、地址寄存器、索引寄存器、段指针、栈指针

控制和状态寄存器:程序计数器PC、指令寄存器IR

Question10

Address registers may contain

选择一个答案

a. Partial memory addresses

b. Memory addresses of data

c. Memory addresses of instructions

d. All of the above

Feedback:

A.辅存地址

B.数据的主存储器地址

C.指令的主存储器地址

Question11

A Control/Status register that contains the address of the next instruction to be fetched is called the:

选择一个答案

a. Program Counter (PC)

b. All of the above

c. Instruction Register (IR)

d. Program Status Word (PSW)

Feedback:

A. Program counter (PC) = Address of instruction

C. Instruction register (IR) = Instruction being executed

D. Program Status Word (PSW) = contains status information

Question12

The two basic steps used by the processor in instruction processing are:

选择一个答案

a. None of the above

b. Fetch and Instruction cycles

c. Fetch and Execute cycles

d. Instruction and Execute cycles

Feedback:

In its simplest form, instruction processing consists of two steps: The processor reads (fetches) instructions from memory one at a time and executes each instruction. P9

Question13

A fetched instruction is normally loaded into the:

选择一个答案

a. Accumulator (AC)

b. None of the above

c. Instruction Register (IR)

d. Program Counter (PC)

Feedback:

Instruction register (IR) = Instruction being executed

A. Accumulator (AC) = Temporary storage 临时存储体

Question14

A common class of interrupts is

选择一个答案

a. Program

b. I/O

c. Timer

d. All of the above

Feedback:

Classes of interrupts:

Program, Timer, I/O, Hardware failure

Question15

When an external device becomes ready to be serviced by the processor, the device sends this type of signal to the processor:

选择一个答案

a. Handler signal

b. None of the above

c. Interrupt signal

d. Halt signal

Feedback:

请求中断信号

Multiple Choice Questions 2

Question1

A primary objective of an operating system is:

选择一个答案

a. Ability to evolve

b. Convenience

c. Efficiency

d. All of the above

Feedback:

操作系统的三个主要目标:方便,有效,扩展的能力

Question2

The paging system in a memory management system provides for dynamic mapping between a virtual address used in a program and:

选择一个答案

a. A real address in a program

b. None of the above

c. A virtual address in main memory

d. A real address in main memory

Feedback:

The paging system provides for a dynamic mapping between the virtual address used in the program and a real address, or physical address, in main

memory. P51

Question3

Relative to information protection and security in computer systems, access control typically refers to:

选择一个答案

a. The flow of data within the system

b. Proving that security mechanisms perform according to specification

c. Regulating user and process access to various aspects of the system

d. None of the above

Feedback:

调节用户和进程对系统方方面面的访问权限

Question4

A common problem with full-featured operating systems, due to their size and difficulty of the tasks they address, is:

选择一个答案

a. Sub-par performance

b. Chronically late in delivery

c. All of the above

d. Latent bugs that show up in the field

Feedback:

一个功能完善的操作系统的大小和它所处理任务的困难性,导致了四个让人遗憾但又普遍存在的问题:

①操作系统在交付使用时习惯性表现出落后

②系统有潜在的错误

③总是难以达到期望的性能

④不可能开发出既复杂又不易受各种安全性攻击的操作系统

P 54

Question5

A technique in which a process, executing an application, is divided into threads that can run concurrently is called:

选择一个答案

a. None of the above

b. Multithreading

c. Symmetric multiprocessing (SMP)

d. Multiprocessing

Feedback:

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

Question6

WIN2K supports several types of user applications, including:

选择一个答案

a. Linux

b. System 10

c. WIN32

d. None of the above

Feedback:

Nothing~

Question7

Key to the success of Linux has been it’s character as a free software package available under the auspices of the:

选择一个答案

a. Berkeley Software Distribution

b. Free Software Foundation

c. World Wide Web Consortium

d. None of the above

Feedback:

Key to the success of Linux has been the availability of free software packages

under the auspices of the Free Software Foundation (FSF). P70

Question8

The operating system provides many types of services to end-users, programmers and system designers, including:

选择一个答案

a. Built-in user applications

b. All of the above

c. Relational database capabilities with the internal file system

d. Error detection and response

Feedback:

the OS typically provides services in the following areas:? Program development ?Program execution ? Access to I/O devices

? Controlled access to files ? System access ? Error detection and response ? Accounting Question9

The operating system is unusual in it’s role as a control mechanism, in that:

选择一个答案

a. It runs on a special processor, completely separated from the rest of the system

b. It never relinquishes control of the system processor

c. None of the above

d. It frequently relinquishes control of the system processor and must depend on the processor to regain control of the system

Feedback:

? The OS functions in the same way as ordinary computer software; that is, it is a program or suite of programs executed by the processor.

? The OS frequently relinquishes control and must depend on the processor to allow it to regain control. P40

Question10

Operating systems must evolve over time because

选择一个答案

a. Users will only purchase software that has a current copyright date

b. New hardware is designed and implemented in the computer system

c. All of the above

d. Hardware must be replaced when it fails

Feedback:

计算机需要不断发展的原因:硬件升级和新型硬件的出现、新的服务、纠正错误

P 40/41

Question11

A major problem with early serial processing systems was:

选择一个答案

a. Inability to get hardcopy output

b. Setup time

c. Lack of input devices

d. All of the above

Feedback:

调度和准备时间

Question12

An example of a hardware feature that is desirable in a batch-processing system is

选择一个答案

a. None of the above

b. A completely accessible memory area

c. Large clock cycles

d. Privileged instructions

Feedback:

内存保护、定时器、特权指令、中断

Question13

A computer hardware feature that is vital to the effective operation of a multiprogramming operating system is:

选择一个答案

a. Very large memory

b. Multiple processors

c. I/O interrupts and DMA

d. All of the above

Feedback:

支持I/O中断和直接存储器访问

Question14

The principle objective of a time sharing, multiprogramming system is to

选择一个答案

a. Maximize processor use

b. None of the above

c. Provide exclusive access to hardware

d. Maximize response time

Feedback:

批处理多道程序设计是为了充分使用处理器,分时多道程序设计是为了减小响应时间Question15

Which of the following major line of computer system development created problems in timing and synchronization that contributed to the development of the concept of the process?

选择一个答案

a. Multiprogramming batch operation systems

b. Real time transaction systems

c. All of the above

d. Time sharing systems

Feedback:

Three major lines of computer system development created problems in timing and synchronization that contributed to the development of the concept of the process:

multiprogramming batch operation, time sharing, and real-time transaction systems. Question16

Which of the following major line of computer system development created problems in timing and synchronization that contributed to the development of the concept of the process?

选择一个答案

a. Multiprogramming batch operation systems

b. Real time transaction systems

c. Time sharing systems

d. All of the above

Multiple Choice Questions 3

Question1

The behavior of a processor can be characterized by examining:

选择一个答案

a. Multiple process traces

b. A single process trace

c. All of the above

d. The interleaving of the process traces

Feedback:

We can characterize behavior of the processor by showing how the traces of the various processes are interleaved. P81

Question2

The Process Image element that contains the modifiable part of the user space is called the:

选择一个答案

a. User Program

b. None of the above

c. System Stack

d. Process Control Block

Feedback:

User data.

Question3

The processor execution mode that user programs typically execute in is referred to as:

选择一个答案

a. System mode

b. None of the above

c. User mode

d. Kernel mode

Feedback:

用户态。System mode = kernel mode

Question4

One step in the procedure for creating a new process involves:

选择一个答案

a. Assigning a unique identifier

b. All of the above

c. Allocating space for the process

d. Initializing the process control block

Feedback:

P99 12345

Question5

A process switch may occur when the system encounters an interrupt condition, such as that generated by a:

选择一个答案

a. All of the above

b. Trap

c. Supervisor call

d. Memory fault

Feedback:

中断:时钟中断、I/O中断、内存失效

陷阱

系统调用

Question6

In the Process Based O/S:

选择一个答案

a. None of the above

b. Major kernel functions are organized as separate functions

c. The User Process Image includes a kernel stack

d. O/S code and data are contained in the shared address space

Feedback:

主要的内核函数被组织成独立的进程P103

Question7

In a typical UNIX system, the element of the process image that contains the processor status information is the:

选择一个答案

a. All of the above

b. System-level context

c. Register context

d. User-level context

Feedback:

处理器状态信息保存在寄存器上下文中

Question8

The behavior of an individual process can be characterized by examining:

选择一个答案

a. The interleaving of the process traces

b. All of the above

c. Multiple process traces

d. A single process trace

Feedback:

独立的进程:单独的进程轨迹

Question9

The basic Two-State Process Model defines two possible states for a process in relationship to the processor:

选择一个答案

a. Running and Executing

b. Running and Not Running

c. None of the above

d. Executing and Waiting

Feedback:

运行和非运行两种状态

Question10

There are a number of conditions that can lead to process termination, including:

选择一个答案

a. Normal completion

b. Parent termination

c. All of the above

d. Bounds violation

Feedback:

P 85

Question11

In the Five-State Process Model, the following represents a valid state transition:

选择一个答案

a. All of the above

b. New -> Blocked

c. New -> Running

d. Running -> Blocked

Feedback:

Null -> New / New -> Ready / Ready -> Running / Running -> Exit / Running -> Ready / Running -> Blocked / Blocked -> Ready / Ready -> Exit / Blocked -> Exit

Question12

In a Process Model that implements two suspend states, a valid state transition is represented by:

选择一个答案

a. Ready -> Ready/Suspend

b. Running -> Ready/Suspend

c. Ready/Suspend -> Ready

d. All of the above

Feedback:

P 89/90

Question13

The scheduling strategy where each process in the queue is given a certain amount of time, in turn, to execute and then returned to the queue, unless blocked is referred to as:

选择一个答案

a. Round-Robin

b. Prioritization

c. All of the above

d. LIFO

Feedback:

Round-Robin 轮循P84

Question14

A Memory Table is an O/S control structure that is used by the O/S to:

选择一个答案

a. Manage I/O devices

b. Provide information about system files

c. None of the above

d. Manage processes

Feedback:

Memory tables are used to keep track of both main (real) and secondary

(virtual) memory.

Question15

The Process Image element that contains the collection of attributes needed by the O/S to control a particular process is called the:

选择一个答案

a. User Data

b. System Stack

c. None of the above

d. Process Control Block

Feedback:

进程控制块

Multiple Choice Questions 4

Question1

The concept of a process in an operating system embodies two primary characteristics, one of which is:

选择一个答案

a. None of the above

b. Resource ownership

c. Symmetric multiprocessing

d. Multithreading

Feedback:

资源所有权、调度/执行

Question2

Early operating systems that were designed with little concern about structure are typically referred to as:

选择一个答案

a. Monolithic operating systems

b. Kernel operating systems

c. All of the above

d. Layered operating systems

Feedback:

单体结构的操作系统

Question3

A benefit of the microkernel organization is:

选择一个答案

a. Flexibility

b. All of the above

c. Portability

d. Extensibility

Feedback:

一致接口、可扩展性、灵活性、可移植性、可靠性、分布式系统支持、对面向对象操作系统的支持

Question4

In low-level microkernel memory management, an example of an operation that can support external paging and virtual memory management is the:

选择一个答案

a. Map operation

b. Flush operation

c. Grant operation

d. All of the above

Feedback:

三个微内核操作支持内核外的分页和虚存管理

授权、映射、刷新P129

Question5

In a W2K system, the state that a thread enters when it has been unblocked and the

resource for which it has been blocked is not yet available is called the:

选择一个答案

a. Waiting state

b. Standby state

c. None of the above

d. Transition state

Feedback:

过渡态

Question6

In a Solaris system, a User-Level Thread (ULT) that enters the active state is assigned to a:

选择一个答案

a. Heavy-Weight Process (HWP)

b. Light-Weight Process (LWP)

c. None of the above

d. Kernel thread

Feedback:

轻量级进程

Question7

In a Linux system, when a new process is cloned, the two processes share the same:

选择一个答案

a. Process identifier

b. Virtual memory

c. task_struct data structure

d. All of the above

Feedback:

克隆后共享同一个虚存

Question8

An example of a system that implements a single process with multiple threads is:

选择一个答案

a. WIN 2000

b. All of the above

c. Solaris

d. Java

Feedback:

P 113

Question9

Which of the following is true regarding the relationship between processes and threads:

选择一个答案

a. It takes less time to switch between two different processes than to switch between two threads within the same process

b. It takes far less time to create a new thread in an existing process than to create a new process

c. It takes less time to terminate a process than a thread

d. All of the above

Feedback:

Nothing~

Question10

The basic thread operation related to the change in thread state that occurs when a thread needs to wait for an event is referred to as the:

选择一个答案

a. Unblock operation

b. None of the above

c. Spawn operation 派生

d. Block operation

Feedback:

显然阻塞

Question11

One of the disadvantages of User-Level Threads (ULTs) compared to Kernel-Level Threads (KLTs) is:

选择一个答案

a. All of the above

b. When a ULT executes a system call, all threads in the process are blocked

c. Scheduling is application specific

d. Thread switching does not require kernel mode privileges

Feedback:

P 119/120

Question12

In the Linux O/S, multiple threads may be created and executed within a single process. This is an example of the following Thread-to-Process relationship:

选择一个答案

a. 1:M

b. 1:1

c. None of the above

d. M:N

Feedback:

Thread :Process = M :1

Question13

The computer system category where a single processor executes a single instruction stream to operate on data stored in a single memory is called:

选择一个答案

a. Single Instruction Multiple Data (SIMD) stream

b. None of the above

c. Single Instruction Single Data (SISD) stream

d. Multiple Instruction Single Data (MISD) stream

Feedback:

单指令单数据流

Question14

In a SMP system, each processor maintains a local cache and must alert all other processors that a change to cache update has taken place. This is referred to as the:

选择一个答案

a. Cache coherency problem

b. Interconnection mechanism problem

c. None of the above

d. Synchronization mechanism problem

Feedback:

高速缓存的一致性问题P124

Question15

Key issues involved in the design of multiprocessor operating systems include:

选择一个答案

a. All of the above

b. Synchronization

c. Scheduling

d. Reliability and fault tolerance

Feedback:

P 125

Multiple Choice Questions 5

Question1

Concurrency plays a major part in which of the following specific contexts:

选择一个答案

a. Multiple applications

b. All of the above √

c. Structured applications

d. O/S structure

Question2

In order to implement mutual exclusion on a critical resource for competing processes, only one program at a time should be allowed

选择一个答案

a. In the critical section of the program √

b. None of the above

c. To Exhibit cooperation

d. To perform message passing

Question3

The following requirement must be met by any facility or capability that is to provide support for mutual exclusion:

选择一个答案

a. All of the above √

b. Only one process at a time can be allowed into a critical code section

c. A process remains in its critical code section for a finite time only

d. No assumptions can be made about relative process speeds

Question4

Processes that are designed to be able to pass execution control back and forth between themselves are referred to as

选择一个答案

a. None of the above

b. Threads

c. Coroutines √

d. Busy waiting processes

Question5

Processes that are designed to be able to pass execution control back and forth between themselves are referred to as

选择一个答案

a. Coroutines √

b. Threads

c. None of the above

d. Busy waiting processes

Question6

In a uniprocessor system, mutual exclusion can be guaranteed by

选择一个答案

a. Interleaving processes

b. Disabling interrupts √

c. Overlapping processes

d. All of the above

Question7

A semaphore that does not specify the order in which processes are removed from the queue is called a

选择一个答案

a. Binary semaphore

b. Weak semaphore √

c. None of the above

d. Strong semaphore

Question8

The finite circular buffer is used to implement which of the following basic queuing strategies

选择一个答案

a. LIFO

b. FILO

c. FIFO √

d. None of the above

Question9

A chief characteristic of a monitor is:

选择一个答案

a. A maximum of two processes may be executing in a monitor at a time

b. All of the above

c. Local data variables of the monitor are accessible by any procedure requesting use of the monitor

d. A process enters the monitor by invoking one of its procedures √

Question10

In synchronization involving message passing, the sender of a message can be

选择一个答案

a. Only blocking

b. All of the above

c. Only non-blocking

d. Either blocking or non-blocking √

Question11

In a system employing message passing, when a message is sent to a shared temporary data structure, this general approach is known as

选择一个答案

a. Direct addressing

b. Blocking

c. Indirect addressing √

d. None of the above

Question12

In a system employing message passing, the typical message is divided into two primary sections

选择一个答案

a. None of the above √

b. Body and mailbox

c. Destination ID and Source ID

d. Header and mailbox

Question13

The Reader/Writer problem requires that certain conditions be satisfied, such as:

选择一个答案

a. Any number of readers may simultaneously read from the file √

b. None of the above

c. Readers may read from the file while writers are writing to it

d. Multiple writers may write to the file simultaneouslyAny number of readers may simultaneously read from the file

Question14

A reason why the Producer/Consumer problem cannot be considered a special case of the Reader/Writer problem with a single writer (the producer) and a single reader (the consumer) is:

选择一个答案

a. None of the above

b. The Producer/Consumer problem doesn’t deal with concurrency issues

c. The producer and co nsumer must be both reader and writer √

d. The consumer must perform writes while the reader performs reads

Question15

Examples of solutions to the concurrency problem that do not involve busy waiting are the following:

选择一个答案

a. None of the above √

b. Semaphores and monitors

c. Producers and consumers

d. Message passing and caching

Question16

A basic echo procedure (that echoes a typed character to the screen) running on a multiprocessor system can produce erroneous output if

选择一个答案

a. Two processes deadlock while in the echo code

b. Access to the echo procedure is unsynchronized √

c. None of the above

d. Access to the echo procedure is synchronized

Multiple Choice Questions 6

Question1

The permanent blocking of a set of processes that either compete for system resources or communicate with each other is called:

选择一个答案

a. Starvation

b. All of the above

c. Prioritization

d. Deadlock √

死锁是一组竞争系统资源或互相通信的竞争间相互的"永久"阻塞

Question2

In deadlocked process recovery, selection criteria for choosing a particular process to abort or rollback includes designating the process with the:

选择一个答案

a. Least total resources allocated so far

b. Lowest priority

c. All of the above √

d. Most estimated time remaining

中文P196 死锁检测后恢复过程对“牺牲”进程的选择

Question3

One approach to an integrated strategy for dealing with deadlocks involves the implementation of:

选择一个答案

a. Process rollbacks

b. Virtual memory

c. Resource classes √

d. None of the above

综合死锁策略:资源分类

Question4

The Dining Philosopher’s Problem is a standard test case for evaluating approaches to implementing:

选择一个答案

a. Synchronization √

b. Starvation

c. All of the above

d. Deadlock

哲学家进餐问题是评价同步方法的一个测试标准

Question5

A software mechanism that informs a process of the occurrences of asynchronous events in UNIX are called:

选择一个答案

a. Pipes

b. Messages

c. Signals √

d. All of the above

信号是用于通知发生一个同步事件的软件机制

Question6

Thread synchronization primitives supported by Solaris include:

选择一个答案

a. Condition variables

b. Semaphores

c. All of the above √

d. Mutual exclusion (mutex) locks

互斥锁、信号量、多读者单写者锁、条件变量

Question7

The family of synchronization objects implemented by W2K include:

选择一个答案

a. Mutex objects

b. Event objects

c. All of the above √

d. Semaphore objects

事件、互斥、信号量、可等待的计时器

Question8

All deadlocks involve conflicting needs for resources by:

选择一个答案

a. Three or more processes

b. One or more processes

c. None of the above

操作系统期末试卷(含答案)79149

操作系统复习题1 一、判断题 1.分时系统中,时间片设置得越小,则平均响应时间越短。() 2.多个进程可以对应于同一个程序,且一个进程也可能会执行多个程序。() 3.一个进程的状态发生变化总会引起其他一些进程的状态发生变化。() 4.在引入线程的OS中,线程是资源分配和调度的基本单位。() 5.信号量的初值不能为负数。() 6.最佳适应算法比首次适应算法具有更好的内存利用率。() 7.为提高对换空间的利用率,一般对其使用离散的分配方式。() 8.设备独立性是指系统具有使用不同设备的能力。() 9.隐式链接结构可以提高文件存储空间的利用率,但不适合文件的随即存取。() 10.访问控制矩阵比访问控制表更节约空间。() 二、选择题 1.在设计分时操作系统时,首先要考虑的是(A);在设计实时操作系统时,首先要考虑的是(B);在设计批处理系统时,首先要考虑的是(C)。 A,B,C :(1)灵活性和适应性;(2)交互性和响应时间;(3)周转时间和系统吞吐量;(4)实时性和可靠性。 2.对一个正在执行的进程:如果因时间片完而被暂停执行,此时它应从执行状态转变为(D)状态;如果由于终端用户的请求而暂停下来,则它的状态应转变为(E)状态;如果由于得不到所申请的资源而暂停时下来,则它的状态应转变为(F)状态。D,E,F:(1);静止阻塞(2);活动阻塞(3);静止就绪(4);活动就绪(5)执行。 3.我们如果为每一个作业只建立一个进程,则为了照顾短作业用户,应采用(G);为照顾紧急作业用户,应采用(H);为能实现人机交互,应采用(I);而能使短作业、长作业和交互作业用户满意时,应采用(J)。 G,H,I,J:(1);FCFS调度算法(2);短作业优先调度算法;(3)时间片轮转算法;(4)多级反馈队列调度算法;(5)基于优先权的剥夺调度算法。 4.由固定分区发展为分页存储管理方式的主要推动力是(K);由分页系统发展为分段系统,进而发展为段页式系统的主要动力分别是(L)和(M)。 K,L,M:(1)提高内存利用率;(2)提高系统吞吐量;(3)满足用户需要;(4)更好地满足多道程序进行的需要;(5)既满足用户需求,又提高内存利用率。 5.在存储管理中,不会产生内部碎片的存储管理方式是(N);支持虚拟存储器,但不能以自然的方式提供存储器的共享和存取保护机制的存储管理方式是(O)。 N:(1)分页式存储管理;(2)分段式存储管理;(3)固定分区式存储管理;(4)段页式存储管理。 O:(1)段页式存储管理;(2)请求分区页式存储管理;(3)请求分段式存储管理;(4)可变分区存储管理;(5)固定分区存储管理;(6)单一连续分区式存储管理。 6.磁盘调度主要是为了优化(P),下列算法中能避免磁盘粘着的现象的是(Q)。P:(1)寻道时间;(2)旋转延迟时间;(3)传输时间。 Q:(1)SSTF;(2)FCFS;(3)SCAN;(4)CSCAN;(5)FSCAN。 7.文件系统中,目录管理最基本的功能是(R),位示图的主要功能是(S),FAT 表的主要功能是(T)。 R,S,T:(1)实现按名存取;(2)提高文件存储空间利用率;(3)管理文件存储器的空闲空间;(4)指出分配给文件的盘块(首个盘块除外)的地址;(5)管理文件存储器的空闲空间,并指出分配给文件的盘块(首个盘块除外)的地址。 8.文件系统采用多级目录结构,可以(U)和(V)。 U,V:(1)缩短访问文件存储器时间;(2)节省主存空间;(3)解决不同用户文件的命名冲突;(4)方便用户读写文件;(5)提高检索目录的速度。9.计算机系统中信息资源的安全包括(W)、(X)和(Y)三个方面,其中程序被删除属于(W)方面的威胁,数据被非法截取属于(X)方面的威胁,消息被更改属于(Y)方面的威胁。 W,X,Y:(1)保密性;(2)完整性;(3)可用性;(4)方便性。 三、填空题 1.操作系统最基本的特征是(1)和(2),最主要的任务是(3)。 2.引入进程的主要目的是(4),进程存在的唯一标志是(5)。 3.(6)是指通过破坏死锁产生的必要条件来防止死锁的发生。引起死锁的四个必要条件中,(7)是不应该被破坏的,但对某些特殊的资源(如打印机),该条可通过(8)来破坏;而其他能被破坏的三个必要条件分别是(9)、(10)和(11)。 4.虚拟存储器管理的基础是(12)原理,在请求分页管理方式中,页表中的状态位用来只是对应页(13)修改位用来只是对应页(14),引用位则是供(15)使用;而在请求分段系统还增加了增补位,它用来指示(16)。 5.设备驱动程序是(17)与(18)之间的通信程序如果系统中有3台相同的单显和2台相同的彩显则必须为它们配置(19)种设备驱动程序 6.廉价磁盘冗余阵列可组成一个大容量磁盘系统,它利用(20)技术来提高磁盘系统的存取进度,而利用(21)技术来增加磁盘系统的可靠性 7.包过滤防火墙工作在(22)层,采用代理服务技术的防火墙则工作在(23)层 8.UNIX文件系统对文件存储空间采用(23)分配方式,它通过(24)来管理空闲的文件存储空间。 四、问答题 1.假设某多道程序设计系统中有供用户使用的内存100k,打印机1台。系统采用可变分区管理内存:对打印机采用静态分配,并假设输入输出操作的时间忽略不计:采用最短剩余时间优先的进程调度算法,进程剩余执行时间相同时采用先来先服务算法;进程调度时机在执行进程结束时或有新进程到达时。现有一进程序列如下: 假设系统优先分配内存的低地址区域,且不需移动已在主存中的进程,请:(1)给出进度调度算法选中进程的次序,并说明理由。 (2)全部进程执行结束所用的时间是多少? 2.请用信号量解决以下的过独木桥问题:同一方向的行人可连续过桥,当某一方向的行人必须等待:另一方向的行人必须等待:当某一方向无人过桥是,另一方向的行人可以过桥。 3.提高内存利用率的途径有哪些? 4.何谓脱机输入/输出技术? 5. 将目录文件当作一般数据文件来处理有什么优缺点? 操作系统复习题1答案 一、判断题 1、错 2、对 3、错 4、对 5、对 6、错 7、错 8、错 9、对10、错 二、选择题 1、A :(2);B:(4);C:(3)。 2、D:(4);E:(3);F:(2)。 3、G:(2);H:(5);I:(3);J:(4)。 4、K:(1);L:(3);M:(5)。 5、N:(2);O:(2)。 6、P:(1)寻道时间;Q:(5)。 7、R:(1);S:(3);T:(5)。 8、U:(3);V:(5)。 9、W:(3);X:(1);Y:(2)。

操作系统试题库填空题及答案

操作系统试题库填空题及答案 1、分时系统必须为用户提供(操作控制命令)以实现(交互(或联机))控制方式。 2、Spooling系统中,作业执行时,从磁盘上的(输入井)中读取信息,并把作业的执行结 果暂时存放在磁盘上的(输出井)中。 3、中断分类后,中断是指(源自CUP以外事件的中断,通常与当前程序(进程)运行无关),异常 是指(源自CUP内部事件的中断,通常与当前程序(进程)运行有关)。 4、所谓脱机用户接口是指(作业控制语言)。 5、用户程序必须通过程序级接口方能获得操作系统的服务,程序级接口主要是由一组(系统调 用)组成。 6、操作系统的主要功能是(存储器管理)、(处理机管理)、(设备管理)、(文件管理)、 (作业管理)。 7、用户是通过(命令接口)或者程序接口向计算机发出请求的。 8、用户与操作系统的接口有(通讯语言)和(系统调用)。 9、交互式系统和多道程序系统相结合可构成(分时)系统。 10、SPOOLing是指(并发的外部设备联机操作),操作系统用它来实现(虚拟设备)的功

能。 11、分时系统追求的目标是(及时响应). 12、用户进程从目态(常态)转换为管态(特态)的唯一途径是(中断). 13、实时系统应具有两个基本特征:及时性和(可靠性). 14、实时系统应具有两个基本特征:(及时性)和可靠性. 15、用户程序通过(访管指令(或系统调用))向操作系统提出各种资源要求和服务请求. 16、SPOOLing(同时的外部设备联机操作)技术是关于慢速字符设备如何与计算机主机交换信息 的一种典型的(虚拟设备)技术. 17、计算机操作系统是方便用户、管理和控制计算机(软硬件资源)的系统软件。 18、面对一般用户,通过(操作命令)方式控制操作系统;面对编程人员,通过(系统调 用)控制。 19、一个完整的计算机系统是由(硬件)和(软件)两大部分组成的。 20、操作系统是(控制和管理)计算机系统内部(各种硬件和软件资源)、有效地组织 多道程序运行的(系统软件(或程序集合)),是用户和计算机的(接口)。

操作系统试卷题库(含部分答案)

题( 1 ) 一、单选题。每小题1分,共16分(将正确答案的序号写在题目的括号中) 1、关于静态分页存储管理的页表,下列说法错误的是(C )。P115 A、内存中每个作业都对应着一个页表 B、页表属于操作系统的内核数据结构 C、如果在不同时间运行同一作业,那么每次运行时页表都是相同的 D、页表存放在内存中 2、批处理操作系统的主要缺点是(C )。P7 A、资源利用率不高 B、作业吞吐量小 C、无人机交互能力 D、作业周转时间短 3、在下列调度算法中,(A )不属于进程调度算法。 A 电梯调度法 B 优先级调度法 C 时间片轮转法 D FIFO法 4、如果文件采用直接存取方式且文件大小不固定,则宜选择(D )文件结构。P189 A 任意 B 顺序 C 随机 D 索引 5、CPU输出数据的速度远远高于打印机的打印速度,为了解决这一矛盾,可采用(C )。 A 交换技术 B 覆盖技术 C 缓冲技术 D DMA技术 6、操作系统是一种(A ) A、系统软件 B、应用软件 C、UNIX D、Window NT 7、在请求页式中,因置换算法选择不当造成页面调度非常频繁,这种情况被称为(A ) A、抖动现象 B、交换现象 C、碎片 D、虚拟 8、多个进程实体能存在于同一内存中,在一段时间内都得到运行。这种性质称作进程的(B )。P30 A 动态性 B 并发性 C 调度性 D 异步性 9、使用户所编制的程序与实际使用的物理设备无关,这是由设备管理的(A)功能实现的。P163 A 设备独立性 B 设备分配 C 缓冲管理D虚拟设备 10、操作系统中,进程之间交换数据的过程称为(C ) A、进程共享 B、进程同步 C、进程通信 D、进程协调 11、关于进程的运行、就绪和阻塞三个状态,下列观点正确的是(D ) A、每个进程从创建到撤消都要经历这三个状态 B、每个进程从创建到撤消,各个状态只能经历一次 C、某些进程可以从阻塞状态转化为运行状态 D、某些进程可以从运行状态转化为就绪状态 12、在一段时间内,只允许一个进程访问的资源称为(C ) A、共享资源 B、临界区 C、临界资源 D、共享区 13、段页式存储管理汲取了页式管理和段式管理的长处,其实现原理结合了页式和段式管理的基本思想,即(B) A、用分段方法来分配和管理物理存储空间,用分页方法来管理用户地址空间 B、用分段方法来分配和管理用户地址空间,用分页方法来管理物理存储空间。 C、用分段方法来分配和管理主存空间,用分页方法来管理辅存空间 D、用分段方法来分配和管理辅存空间,用分页方法来管理主存空间 14、下面的论述中,正确的是(A ) A、一个进程是由一个伪处理机执行的一个程序 B、程序的并发执行将导致最终结果失去封闭性 C、不同的进程所执行的程序段代码也不同 D、以优先级为基础的低级调度算法,可以保证任何时候当前正在运行的进程总是非等待状态下 诸进程中优先级最高的进程。 15、避免死锁的一个著名的算法是(B) A、先入先出法 B、银行家算法 C、优先级算法 D、资源按序分配法 16、资源的预先分配策略可以实现死锁的(A ) A、预防 B、避免 C、检测 D、恢复

1操作系统试题及答案

操作系统试题及答案 一、选择题 1、操作系统的主要功能是管理计算机系统中的()。 A.程序库 B.数据 C.文件 D.资源 2、在操作系统中,()是竞争和分配计算机系统资源的基本单位。 A.程序 B.进程 C.作业 D.用户 3、在操作系统中,并发性是指若干个事件()发生。 A,在同一时刻 B。一定在不同时刻 C.某一时间间隔内 D。依次在不同时间间隔内 4、产生死锁的基本原因是()和进程推进顺序非法。 A.资源分配不当B.系统资源不足C.作业调度不当D.进程调度不当 5、文件系统采用多级目录结构的目的是() A.系统开销B.节省存储空间C.解决命名冲突D.缩短传送时间 6、位示图方法可用于() A.盘空间的管理 B.盘的驱动调度 C.文件目录的查找 D.页式虚拟存储管理中的页面调度 7、下列算法中用于磁盘移臂调度的是( ) A.时间片轮转法 B. LRU算法 C.最短寻找时间优先算法 D.优先级高者优先算法 8、存放在磁盘上的文件,()。 A.即可随机访问,又可顺序访问 B。只能随机访问 C.只能顺序访问 D。只能读/写不能访问 9、一作业8:00到达系统,估计运行时间为1小时,若10:00开始执行该作业,其响应比是()A.2 B.1 C.3 D.0.5 10、进程和程序的本质区别是()。 A.内存和外存 B。动态和静态特征 C。共享和独占使用计算机资源D。顺序和非顺序执行机器指令 11、对于硬盘上存放的信息,物理上读写的最小单位是一个()。 A.二进位 B。字节 C。物理块 D。逻辑记录 12、多道程序设计是指() A.在实时系统中并发运行多个程序 B.在分布系统中同一时刻运行多个程序 C.在一台处理机上同一时刻运行多个程序 D.在一台处理机上并发运行多个程序 13、进程从运行状态进入就绪状态的原因可能是() A.被选中占有处理机 B.等待某一事件 C.等待的事件已发生 D.时间片用完 14、由于系统无法预先知道一个作业未来访问页面的情况,所以()在实际上是无法实现的。 A.先进先出淘汰算法 B。最近最少使用淘汰算法 C.最优淘汰算法 D。最不常用页面淘汰算法 15、文件系统为每个文件另建立一张指示逻辑记录和物理块之间的对应关系表,由此表和文件本身构成的文件是()。

操作系统试题库填空题

1、分时系统必须为用户提供( 操作控制命令) 以实现( 交互(或联机) )控制方式。 2、Spooling系统中,作业执行时,从磁盘上的 ( 输入井) 中读取信息,并把作业的执行结 果暂时存放在磁盘上的( 输出井)中。 3、中断分类后,中断是指(源自CUP以外事件的中断,通常与当前程序(进程)运行无关),异常 是指(源自CUP内部事件的中断,通常与当前程序(进程)运行有关)。 4、所谓脱机用户接口是指(作业控制语言)。 5、用户程序必须通过程序级接口方能获得操作系统的服务,程序级接口主要是由一组(系统调 用)组成。 6、操作系统的主要功能是(存储器管理)、(处理机管理)、(设备管理)、(文件管理)、 (作业管理)。 7、用户是通过(命令接口)或者程序接口向计算机发出请求的。 8、用户与操作系统的接口有(通讯语言)和(系统调用)。 9、交互式系统和多道程序系统相结合可构成(分时)系统。 10、SPOOLing是指(并发的外部设备联机操作),操作系统用它来实现(虚拟设备)的功 能。 11、分时系统追求的目标是(及时响应). 12、用户进程从目态(常态)转换为管态(特态)的唯一途径是(中断). 13、实时系统应具有两个基本特征: 及时性和(可靠性). 14、实时系统应具有两个基本特征:(及时性)和可靠性. 15、用户程序通过(访管指令(或系统调用) )向操作系统提出各种资源要求和服务请求. 16、SPOOLing(同时的外部设备联机操作)技术是关于慢速字符设备如何与计算机主机交换信息 的一种典型的(虚拟设备)技术. 17、计算机操作系统是方便用户、管理和控制计算机(软硬件资源)的系统软件。 18、面对一般用户,通过(操作命令)方式控制操作系统;面对编程人员,通过(系统调 用)控制。 19、一个完整的计算机系统是由(硬件)和(软件)两大部分组成的。 20、操作系统是(控制和管理)计算机系统内部(各种硬件和软件资源)、有效地组织 多道程序运行的(系统软件(或程序集合)),是用户和计算机的(接口)。 21、操作系统的主要功能有:(存储器管理)、(处理机管理)、(设备管理)、 (文件管理)和(作业管理)。 22、操作系统是裸机之上的第(一)层软件,与硬件关系尤为密切。 23、操作系统是整个系统的控制管理中心,它既管理(硬件),又管理(软件)。 24、操作系统的基本特征是(并发)、(共享)和(异步(不确定性) )。 25、根据操作系统的功能、使用环境、配置规模等,操作系统一般可分为如下六种类型:(多 道批处理系统)、(分时系统)、(实时系统)、个人机系统、(网络操作系统)和(分布式操作系统)。 26、现代操作系统通常为用户提供三种使用界面,即(命令界面)、(图形界面)和(系

操作系统选择题整理及答案

一 .操作系统概论 1.计算机操作系统的功能是(D ) A 把源程序代码转换为目标代码 B 实现计算机用户之间的相互交流 C 完成计算机硬件与软件之间的转换 D 控制、管理计算机系统的资源和程序的执行 2.操作系统是一组(C)。 A 文件管理程序 B 中断处理程序 C 资源管理程序 D 设备管理程序 3.操作系统的功能是进行处理机管理、(B )管理、设备管理、文件管理和作业管理等。 A 进程 B 存储器 C 硬件 D 软件 4. (D )指令是非特权指令。 A 启动I/O B 设置中断屏敝 C 传送PSW D trap 5.在(B )的控制下,计算机系统能及时处理由过程控制反馈的数据,并作出响应。 A 批处理操作系统 B 实时操作系统 C 分时操作系统 D 多处理机操作系统 6.操作系统为用户程序完成与(B )的工作。 A 硬件无关和应用无关 B 硬件相关和应用无关 C 硬件无关和应用相关 D 硬件相关和应用相关 7.分时操作系统的主要目的是(A)。 A 计算机系统的交互性 B 计算机系统的实时性 C 计算机系统的可靠性 D 提高软件的运行速度 8.在操作系统中,用户界面指的是(B )。 A 硬件接口、软件接口和操作环境 B 命令接口、程序接口和操作环境 C 硬件接口、命令接口和操作环境 D 硬件接口、命令接口和程序接口 9.特权指令(B )执行。 A 只能在目态下 B 只能在管态下

C 在目态或管态下均能 D 在目态或管态下均不能 10.下列管理功能中,(B )不属于操作系统的功能。 A 处理器管理 B 软件管理 C 作业管理 D 设备管理 11.以下描述与操作系统无关的是(C )。 A 方便用户的程序集合 B 控制和管理计算机系统的硬件和软件资源 C 计算机系统的硬件和软件资源的集合 D 合理地组织计算机工作流程 12.分时操作系统的特点是(A )。 A 交互性、同时性(多路性)、独立性、及时性 B 可靠性、交互性、独立性、及时性 C 可靠性、交互性、独立性、及时性 D 交互性、同时性(多路性)、独立性、动态性 13.下列各项中,(C )不是现代操作系统的主要特征。 A 并发性 B 共享性 C 确定性 D虚拟性 14.以下关于操作系统作用的叙述中,不正确的是(D )。 A 管理系统资源 B 控制程序执行 C 改善人机界面 D 提高用户软件运行速度 15.从用户的观点看,操作系统是(A )。 A 用户与计算机之间的接口 B 控制和管理计算机资源的软件 C 合理地组织计算机工作流程的软件 D 由若干层次的程序按一定的结构组成的有机体 16.(C )操作系统允许在一台主机上同时连接多台终端,多个用户可以通过各自的终端同时交互地使用计算机。 A 网络 B 分布式 C 分时 D 实时 17.若把操作系统看作计算机系统资源的管理者,下列的(D )不属于操作系统管理的资源。 A 程序 B 内存 C CPU D 中断

计算机操作系统考试题题库及答案

计算机操作系统试题库与答案 一、选择题 1、热启动 DOS的方法是____C____键。 A、依次按下 CTRL+ALT+INS B、依次按下 CTRL+ALT+ESC C、同时按下 CTRL+ALT+DEL D、同时按下 CTRL+ALT+ESC 2、DOS 规定,主文件名由 1到_______个字符组成。 A、4 B、6 C、8 D、12 3、下列一个 DOS 的主文件名中,____C____是合法的。 A、&A.DBF B、@Z2 材 C、FILEL.WPS D、*.EZE1 4、DOS 中规定文件名是由____B____两部分组成的。 A、文件名+基本名 B、主文件名+ .扩展名 C、主文件名+扩展名 D、后缀+名称 5、MS-DOS 包括内部命令和外部命令, 外部命令以____A____存放在磁 A、文件方式 B、数据方式 C、系统方式 D、记录方式 6、当用户需使用某一文件时,在命令行中应指出文件的_____C____。 A、关键字 B、内容 C、盘符\路径\文件名 D、属性 7、DOS 的内部命令是在____D____时装入到内存的。 A、安装 B、执行用户程序 C、启动 D、执行系统程序 8、DOS 文件标识符一般格式为____D____。 A、[<路径>] <文件名> B、[<盘符>] <文件名> C、[<盘符>] <文件名> [<扩展名>] D、[<盘符>][<路径>]<文件名>[<.扩展名>] 9、DOS 命令中的"*"号可代替___A___个字符。 A、任意 B、1 C、3 D、8 10、设当前工作盘是 C 盘,存盘命令中没有指明盘符,则信息将存放于____B__。 A、内存 B、C 盘 C、A 盘 D、D 盘 11、在 DOS系统下,要编辑现有磁盘文件,则必须将文件读至____D____。 A、运算器 B、寄存器 C、控制器 D、内存储器 12、DOS 的含义是:____C___ A、数据库管理系统 B、实时操作系统 C、磁盘操作系统 D、汉字操作系统 13、可以对一张作了写保护的软盘进行操作的 DOS 命令是:___C____ A、DEL B、RD C、DIR D、REN 14、下列文件中,不是 DOS 可执行文件的是:____A___ A、TODAY.BAS B、TODAY.BAT C、https://www.360docs.net/doc/3d11535220.html, D、WPS.EXE 15、在 DOS命令中可用的通配符是:___B____ A、*和/ B、*和? C、?和/ D、\和. 16、表示当前工作目录的父目录的符号是:_______ A、. B、..\.. C、\ D、.. 17、要分屏显示 C 盘当前目录下的文件目录的全部信息,正确的命令是:____C___ A、TYPE C: /P B、DIR C:\ /P C、DIR C: /P D、LIST C:/P 18、删除指定子目录的 DOS 命令是:___A__ A、RD B、ERASE C、DEL D、RM

计算机操作系统习题及答案()

第3章处理机调度1)选择题 (1)在分时操作系统中,进程调度经常采用_D_ 算法。 A. 先来先服务 B. 最高优先权 C. 随机 D. 时间片轮转 (2)_B__ 优先权是在创建进程时确定的,确定之后在整个进程运行期间不再改变。 A. 作业 B. 静态 C. 动态 D. 资源 (3)__A___ 是作业存在的惟一标志。 A. 作业控制块 B. 作业名 C. 进程控制块 D. 进程名 (4)设有四个作业同时到达,每个作业的执行时间均为2小时,它们在一台处理器上按单道方式运行,则平均周转时间为_ B_ 。 A. l小时 B. 5小时 C. 2.5小时 D. 8小时 (5)现有3个同时到达的作业J1、J2和J3,它们的执行时间分别是T1、T2和T3,且T1<T2<T3。系统按单道方式运行且采用短作业优先算法,则平均周转时间是_C_ 。 A. T1+T2+T3 B. (T1+T2+T3)/3 C. (3T1+2T2+T3)/3 D. (T1+2T2+3T3)/3 (6)__D__ 是指从作业提交给系统到作业完成的时间间隔。 A. 运行时间 B. 响应时间 C. 等待时间 D. 周转时间 (7)下述作业调度算法中,_ C_调度算法与作业的估计运行时间有关。 A. 先来先服务 B. 多级队列 C. 短作业优先 D. 时间片轮转 2)填空题 (1)进程的调度方式有两种,一种是抢占(剥夺)式,另一种是非抢占(非剥夺)式。 (2)在_FCFS_ 调度算法中,按照进程进入就绪队列的先后次序来分配处理机。 (3)采用时间片轮转法时,时间片过大,就会使轮转法转化为FCFS_ 调度算法。 (4)一个作业可以分成若干顺序处理的加工步骤,每个加工步骤称为一个_作业步_ 。 (5)作业生存期共经历四个状态,它们是提交、后备、运行和完成。 (6)既考虑作业等待时间,又考虑作业执行时间的调度算法是_高响应比优先____ 。 3)解答题 (1)单道批处理系统中有4个作业,其有关情况如表3-9所示。在采用响应比高者优先调度算法时分别计算其平均周转时间T和平均带权周转时间W。(运行时间为小时,按十进制计算) 表3-9 作业的提交时间和运行时间

操作系统复习题选择和填空 带答案

精品文档 第一章绪论复习题 1、操作系统有多种类型,允许多个用户将若干个作业提交给计算机集中处理的 操作系统,称为__A___。 A.批处理操作系统 B.分时操作系统 C.实时操作系统 D.多处理机操作系统 2、????C?????操作系统允许用户把若干个作业提交给计算机系统。 A、单用户 B、分布式 C、批处理 D、监督 3、以下4个特征中,????C???不是分时OS的特征。 A、多路性 B、交互性 C、及时响应性 D、批量性 4、操作系统有多种类型,允许多个用户以交互方式使用计算机的操作系统,称 为______B_。 A.批处理操作系统 B.分时操作系统 C.实时操作系统 D.多处理机操作系统 5、一个完整的计算机系统是由___C _组成的。 A、硬件 B.软件 C. 硬件和软件 D.用户程序 6、操作系统是一种____B__,它负责为用户和用户程序完成所有与硬件相关并与应用无关的工作。 A.应用软件 B.系统软件 C.通用软件 D.软件包 7、把处理机的时间分成很短的时间片(如几百毫秒),并把这些时间片轮流地分配给各联机作业使用的技术称为_________A_。 A. 分时技术 B. 实时技术 C. 批处理技术 D. 多道程序设计技术 8、实时操作系统追求的目标是 C 。 A.高吞吐率 B.充分利用内存 C.快速响应 D.减少系统开销 9、分时操作系统通常采用???????B?????策略为用户服务。 A、可靠性和灵活性 B、时间片轮转 C、时间片加权分配 D、短作业优先 10、操作系统是对?????C??????进行管理的软件。 A、软件 B、硬件 C、计算机资源 D、应用程序 11、现代操作系统的主要目标是___提高资源利用率和___方便用户_ 。 12、操作系统的基本类型主要有___分时系统(或分时操作系统)、实时系统(或实时操作系统)和_批处理系统(或批处理操作系统)。 13、操作系统五个功能是:处理机管理、存储器管理、设备管理、以及文件管理和为用户提供操作接口。 14、操作系统的基本特征是___并发____,__共享___,___虚拟___ 和__异步___。 15、操作系统一般为用户提供了三种界面,它们是______命令界面____,__图形界面___和___系统调用界面__。 第二章进程管理复习题 1、并发性是指若干事件在 B 发生。 A.同一时刻 B.同一时间间隔内 C.不同时刻 D.不同时间间隔内 2、进程和程序的本质区别是 D 。 A.存储在内存和外存 B.顺序和非顺序执行机器指令 C.分时使用和独占使用计算机资源 D.动态和静态特征 3、进程从运行状态进入就绪状态的原因可能是 D 。 A.被选中占有处理机 B.等待某一事件 C.等待的事件已发生 D.时间片用完

计算机操作系统期末考试题及答案

2016学年度计算机操作系统期末考试题及答案 一、单项选择题(每题1分,共20分) 1。操作系统得发展过程就是(C) A、原始操作系统,管理程序,操作系统 B、原始操作系统,操作系统,管理程序C、管理程序,原始操作系统,操作系统D、管理程序,操作系统,原始操作系统 2.用户程序中得输入、输出操作实际上就是由( B)完成。 A、程序设计语言 B、操作系统C、编译系统D、标准库程序 3.进程调度得对象与任务分别就是( C ). A、作业,从就绪队列中按一定得调度策略选择一个进程占用CPU B、进程,从后备作业队列中按调度策略选择一个作业占用CPU C、进程,从就绪队列中按一定得调度策略选择一个进程占用CPU D、作业,从后备作业队列中调度策略选择一个作业占用CPU 4.支持程序浮动得地址转换机制就是( A) A、动态重定位B、段式地址转换C、页式地址转换D、静态重定位 5。在可变分区存储管理中,最优适应分配算法要求对空闲区表项按( C )进行排列。A、地址从大到小B、地址从小到大C、尺寸从小到大D、尺寸从大到小 6.设计批处理多道系统时,首先要考虑得就是(B)。 A、灵活性与可适应性B、系统效率与吞吐量C、交互性与响应时间D、实时性与可靠性 7。当进程因时间片用完而让出处理机时,该进程应转变为(B)状态。 A、等待 B、就绪C、运行D、完成 8。文件得保密就是指防止文件被(C)。 A、篡改 B、破坏 C、窃取 D、删除 9.若系统中有五个并发进程涉及某个相同得变量A,则变量A得相关临界区就是由( D)临界区构成。 A、2个 B、3个 C、4个D、5个 10.按逻辑结构划分,文件主要有两类:(A)与流式文件。 A、记录式文件B、网状文件C、索引文件D、流式文件 11.UNIX中得文件系统采用(D)。 A、网状文件B、记录式文件C、索引文件D、流式文件 12.文件系统得主要目得就是(A )。 A、实现对文件得按名存取B、实现虚拟存贮器C、提高外围设备得输入输出速度D、用于存贮系统文档 13.文件系统中用(D )管理文件. A、堆栈结构B、指针C、页表D、目录 14。为了允许不同用户得文件具有相同得文件名,通常在文件系统中采用( B)。A、重名翻译B、多级目录C、约定D、文件名 15.在多进程得并发系统中,肯定不会因竞争(C)而产生死锁。 A、打印机 B、磁带机C、CPU D、磁盘 16.一种既有利于短小作业又兼顾到长作业得作业调度算法就是( C )。 A、先来先服务 B、轮转 C、最高响应比优先 D、均衡调度 17.两个进程合作完成一个任务.在并发执行中,一个进程要等待其合作伙伴发来消息,或者建立某个条件后再向前执行,这种制约性合作关系被称为进程得

操作系统概念第七版习题答案(中文版)完整版

1.1 在多道程序和分时环境中,多个用户同时共享一个系统,这种情况导致多种安全问题。a. 列出此类的问题b.在一个分时机器中,能否确保像在专用机器上一样的安全度?并解释之。 Answer:a.窃取或者复制某用户的程序或数据;没有合理的预算来使用资源(CPU,内存,磁盘空间,外围设备)b.应该不行,因为人类设计的任何保护机制都会不可避免的被另外的人所破译,而且很自信的认为程序本身的实现是正确的是一件困难的事。 1.2 资源的利用问题在各种各样的操作系统中出现。试例举在下列的环境中哪种资源必须被严格的管理。(a)大型电脑或迷你电脑系统(b)与服务器相联的工作站(c)手持电脑 Answer: (a)大型电脑或迷你电脑系统:内存和CPU 资源,外存,网络带宽(b)与服务器相联的工作站:内存和CPU 资源(c)手持电脑:功率消耗,内存资源 1.3 在什么情况下一个用户使用一个分时系统比使用一台个人计算机或单用户工作站更好? Answer:当另外使用分时系统的用户较少时,任务十分巨大,硬件速度很快,分时系统有意义。充分利用该系统可以对用户的问题产生影响。比起个人电脑,问题可以被更快的解决。还有一种可能发生的情况是在同一时间有许多另外的用户在同一时间使用资源。当作业足够小,且能在个人计算机上合理的运行时,以及当个人计算机的性能能够充分的运行程序来达到用户的满意时,个人计算机是最好的,。 1.4 在下面举出的三个功能中,哪个功能在下列两种环境下,(a)手持装置(b)实时系统需要操作系统的支持?(a)批处理程序(b)虚拟存储器(c)分时 Answer:对于实时系统来说,操作系统需要以一种公平的方式支持虚拟存储器和分时系统。对于手持系统,操作系统需要提供虚拟存储器,但是不需要提供分时系统。批处理程序在两种环境中都是非必需的。 1.5 描述对称多处理(SMP)和非对称多处理之间的区别。多处理系统的三个优点和一个缺点? Answer:SMP意味着所以处理器都对等,而且I/O 可以在任何处理器上运行。非对称多处理有一个主处理器控制系统,与剩下的处理器是随从关系。主处理器为从处理器安排工作,而且I/O 也只在主处理器上运行。多处理器系统能比单处理器系统节省资金,这是因为他们能共享外设,大容量存储和电源供给。它们可以更快速的运行程序和增加可靠性。多处理器系统能比单处理器系统在软、硬件上也更复杂(增加计算量、规模经济、增加可靠性) 1.6 集群系统与多道程序系统的区别是什么?两台机器属于一个集群来协作提供一个高可靠性的服务器的要求是什么? Answer:集群系统是由多个计算机耦合成单一系统并分布于整个集群来完成计算任务。另一方面,多道程序系统可以被看做是一个有多个CPU 组成的单一的物理实体。集群系统的耦合度比多道程序系统的要低。集群系统通过消息进行通信,而多道程序系统是通过共享的存储空间。为了两台处理器提供较高的可靠性服务,两台机器上的状态必须被复制,并且要持续的更新。当一台处理器出现故障时,另一台处理器能够接管故障处理的功能。

最新操作系统试题及答案

一、单项选择题(每题2分,共20分) 1.以下著名的操作系统中,属于多用户、分时系统的是( )。 A.DOS系统B.UNIX系统 C.Windows NT系统D.OS/2系统 2.在操作系统中,进程的最基本的特征是( )。 A.动态性和并发性B.顺序性和可再现性 C.与程序的对应性D.执行过程的封闭性 3.操作系统中利用信号量和P、V操作,( )。 A.只能实现进程的互斥B.只能实现进程的同步 C.可实现进程的互斥和同步D.可完成进程调度 4.作业调度的关键在于( )。 A.选择恰当的进程管理程序B.用户作业准备充分 C.选择恰当的作业调度算法D.有一个较好的操作环境 5.系统抖动是指( )。 A.使用机器时,屏幕闪烁的现象 B.由于主存分配不当,偶然造成主存不够的现象 C.系统盘有问题,致使系统不稳定的现象 D.被调出的页面又立刻被调入所形成的频繁调入调出现象 6.在分页存储管理系统中,从页号到物理块号的地址映射是通过( )实现的。 A.段表B.页表 C. PCB D.JCB

7.在下述文件系统目录结构中,能够用多条路径访问同一文件(或目录)的目录结构是( ) A.单级目录B.二级目录 C.纯树型目录D.非循环图目录 8.SPOOLing技术可以实现设备的( )分配。 A.独占B.共享 C.虚拟D.物理 9.避免死锁的一个著名的算法是( )。 A.先人先出算法B.优先级算法 C.银行家算法D.资源按序分配法 10.下列关于进程和线程的叙述中,正确的是( )。 A.一个进程只可拥有一个线程 B.一个线程只可拥有一个进程 C.一个进程可拥有若干个线程 D.一个线程可拥有若干个进程 二、判断题(选择你认为正确的叙述划√,认为错误的划×并说明原因。每题2分,共10分) 1.简单地说,进程是程序的执行过程。因而,进程和程序是一一对应的。( ) 2.V操作是对信号量执行加1操作,意味着释放一个单位资源,加l后如果信号量的值小于等于零,则从等待队列中唤醒一个进程,使该进程变为阻塞状态,而现进程继续进行。( )

操作系统试题库简答题

1、什么是操作系统?它有什么基本特征? 操作系统是控制和管理计算机系统内各种硬件和软件资源、有效地组织多道程序运行的系统软件(或程序集合),是用户与计算机之间的接口。 操作系统的基本特征是:并发、共享和异步性。 2、操作系统的含义及其功能是什么? 1)、含义:OS是一组系统软件,它是软硬件资源的控制中心,它以尽量合理有效的方法组织多个用户共享计算机的各种资源。 2)功能:管理计算机的软硬件资源(包括:处理机管理,作业管理,存储管理,设备管理,文件管理)、提高资源的利用率、方便用户。 3、叙述操作系统的含义及其功能,并从资源管理角度简述操作系统通常由哪几部分功能模 块构成,以及各模块的主要任务。 答: 1)、OS是一个系统软件,是控制和管理计算机系统硬件和软件资源,有效、合理地组 织计算机工作流程以及方便用户使用计算机系统的程序集合。 2)功能:管理计算机的软硬件资源、提高资源的利用率、方便用户。 3)组成模块: (1)、处理机管理(或进程管理):对CPU的管理、调度和控制。 (2)、存储管理:管理主存的分配、使用和释放。 (3)、设备管理:管理设备的分配、使用、回收以及I/O控制。 (4)、文件管理:管理外存上文件的组织、存取、共享和保护等。 (5)、作业管理:对作业的管理及调度。(或用户接口,使用户方便的使用计算机) 4、什么是中断向量?什么是多级中断?中断处理的过程一般有哪几步? (1)、中断向量:存放中断处理程序入口地址的内存单元称为中断向量。 (2)、多级中断:为了便于对同时产生的多个中断按优先次序来处理,所以在设计硬件时,对各种中断规定了高低不同的响应级别。优先权相同的放在一级。 (3)、中断处理步骤:响应中断,保存现场;分析中断原因,进入中断处理程序;处理中断;恢复现场,退出中断。 5、什么是多道程序设计技术 多道程序设计技术就是在系统(内存)中同时存放并运行多道相互独立的程序(作业),主机以交替的方式同时处理多道程序。它是一种宏观上并行,微观上串行的运行方式。 6、分时系统和实时系统有什么不同? 答:分时系统通用性强,交互性强,及时响应性要求一般(通常数量级为秒);实时系统往往是专用的,系统与应用很难分离,常常紧密结合在一起,实时系统并不强调资源利用率,而更关心及时响应性(通常数量级为毫秒或微秒)、可靠性等。

操作系统题库答案

第一部分引言 一、选择题 1、下列选择中,哪些不是操作系统关心的主要问题。(浙大2003) (1)管理计算机裸机;(2)设计提供用户与计算机硬件系统间的界面; (3)管理计算机系统资源;(4)高级程序设计语言的编译器。 2、从用户角度看,操作系统是()。 A、计算机资源的管理者; B、计算机工作流程的组织者; C、用户与计算机之间的接口; D、由按层次结构组成的软件模块的集合。 3、引入多道程序技术的前提条件之一是系统具有()(西电00) (1)多个cpu;(2)多个终端;(3)中断功能;(4)分时功能 4、操作系统是一种。 A.系统软件 B.系统硬件 C.应用软件 D.支援软件 5、操作系统允许一台主机上同时连接多台终端,多个用户可以通过各自的终端同时交互地使用计算机。 A.实时 B.分时 C.分布式 D.单用户 6、如果操作系统具有很强的交互性,可同时供多个用户使用,但时间响应不太及时,则属于分时操作系统类型;如果操作系统可靠,时间响应及时但仅有简单的交互能力则属于实时操作系统类型。 二、判断题 1、所谓多道程序设计,即指每一时刻有若干个进程在执行。(错)(南京大学00) 2、采用多道程序设计的系统中,系统的程序道数越多,系统效率越高。(错)(西电01) 3、由于采用了分时技术,用户可以独占计算机的资源。(错) 4、多道程序设计是利用了CPU和通道的并行工作来提高系统利用率的。(错) 5、多道程序设计可以缩短系统中作业的执行时间。(错) 6、在一个兼顾分时操作系统和批处理系统中,通常把终端作业称为前台作业,而把批处理型作业称为后台作业。(错)

7、批处理系统不允许用户随时干预自己程序的运行。(对) 8、Windows操作系统完全继承了分时系统的特点。(对) 9、并发是并行的不同表述,其原理相同。(错)(清华1998) 10、在单处理机系统中实现并发技术后,判断: (1)各进程在某一时刻并行运行,cpu与外设间并行工作;(错) (2)各进程在一个时间段内并行运行,cpu与外设间串行工作;(错) (3)各进程在一个时间段内并行运行,cpu与外设间并行工作。(对)(四川大学01) 11、在单CPU环境下,不宜使用多道程序设计技术。(错) 12、并发性是指若干事件在同一时刻发生。(错) 13、实时操作系统通常采用抢占式调度。(对) 14、UNIX操作系统是著名的()系统。 A.分时 B.多道批处理 C.实时 D.分布式 15、允许在一台主机上同时连接多台终端,多个用户可以通过各自的终端同时交互地使用计算机的操作系统是()操作系统。 A. 网络 B. 分布式 C. 分时 D. 实时 三、计算题 1、若程序A和B单独执行时分别用TA和TB,TA=1h,TB=1.5h,其中处理器工作时间分别为TA=18min,TB=27min。如果采用多道程序设计方法,让A,B并行工作,假定处理器利用率达到50%,另加15min系统开销,请问系统效率提高百分之几? 解: (18+27)/0.5=90 ((60+90)-(90+15))/(60+90)=0.3 0.3*100%=30% 2、在操作系统中引入并发可以提高系统效率,若有两个程序A和B,A程序执行时所做的工作按次序需要用cpu:10s,设备1:5s,cpu:5s,设备2:10s,cpu:10s;程序B执行时所做的工作按次序需要用设备1:10s,cpu:10s,设备2:5s,cpu:5s,设备2:10s。如果在顺序环境下执行两个程序,则cpu的利用率为();如果在并发环境下执行两个程序,则cpu的利用率为()。 3、设某计算机系统有一个cpu、一台输入设备、一台打印机。现有两个进程同时进入就绪

最新操作系统试题及答案

一、选择题 1、一个完整的计算机系统是由(C)组成的。 A.硬件 B.软件 C. 硬件和软件 D.用户程序 2、操作系统的基本职能是(A )。 A.控制和管理系统内各种资源,有效地组织多道程序的运行 B.提供用户界面,方便用户使用 C.提供方便的可视化编辑程序 D.提供功能强大的网络管理工具 3、以下著名的操作系统中,属于多用户、分时系统的是(C )。 A. DOS系统 B. Windows NT系统 C. UNIX系统 D.OS/2系统 4、为了使系统中所有的用户都能得到及时的响应,该操作系统应该是(B )。 A.多道批处理系统B.分时系统C.实时系统D.网络系统 5、当操作系统退出执行,让用户执行时,系统会(C )。 A.继续保持管态B.继续保持目态 C.从管态变为目态D.从目态变为管态 6、下列进程状态的转换中,哪一个是不正确的(D)。 A.就绪→运行 B.运行→就绪 C.阻塞→就绪 D.就绪→阻塞 7、某进程由于需要从磁盘上读入数据而处于阻塞状态。当系统完成了所需的读盘操作后,此时该进程的状态将(D )。 A.从就绪变为运行B.从运行变为就绪 C.从运行变为阻塞D.从阻塞变为就绪 8、多个进程的实体能存在于同一内存中,在一段时间内都得到运行。这种性质称作进程的(B )。 A. 动态性 B. 并发性 C. 调度性 D. 异步性 9、进程控制块是描述进程状态和特性的数据结构,一个进程(D)。 A.可以有多个进程控制块B.可以和其他进程共用一个进程控制块 C.可以没有进程控制块D.只能有惟一的进程控制块 10、在大多数同步机构中,均用一个标志来代表某种资源的状态,该标志常被称为(C)。 A、公共变量 B、标志符 C、信号量 D、标志变量 11、如果进程PA对信号量S执行P操作,则信号量S的值应(B )。 A.加1 B.减1 C.等于0 D.小于0 12、进程状态从就绪态到运行态的转化工作是由(C)完成的。 A.作业调度B.中级调度C.进程调度D.设备调度 13、为了使系统中各部分资源得到均衡使用,就必须选择对资源需求不同的作业进行合理搭配。这项工作是由(A)完成的。 A.作业调度B.中级调度C.进程调度D.内存调度 14、通常,用户编写的程序中所使用的地址是(A )。

相关文档
最新文档