东北大学软件学院操作系统机考选择题库

上学期刷题的时候刷了很多遍,基本把八成以上的题目都扒下来整理好了,重复的也基本筛选了。另外还写了点解析。对期末考试是很有帮助的。

存储管理:

A page fault means that we referenced a page __________. 答案that was not in main memory

In virtual paging memory management, which of the following is true答案the length of page is fixed, and it is in accordance with the hardware feature页表大小固定且与硬件匹配

Which is the basic reason for invovling work set model应该是involving) 答案locality principle of program execution程序执行的局部性原理

In virtual paging memory management, which part is in charge of bringing pages into memory答案page fault handling

In virtual paping memory management, if we make twice as great as current page size, the number of page fault will 答案reduce页错误会随页增大而减少

In virtual paging memory management, which page will be selected to swap out by FIFO algorithm答案the page which has be staying in memory with the longest time先入先出

In virtual paging memory management, which page will be selected to swap out by LRU algorithm答案the page whose last access time is the farest from current time距现在最远的

The basic function of the file system is accessing files by names. The function can be realized by . 答案directory-managing

The essence of creating a file in file system is 答案creating the file control block创建文件的本质是创建文件控制块

FCB contains many pieces of information associated with a specific process, except _. 答案file name (包含文件权限、拥有者、大小、数据块位置等)

In order to increase the speed of searching directory, the file system need to build for searching file based on relative path. 答案current directory

An allocation method refers to how disk blocks are allocated for files, which of the following is not a disk allocation method: 答案free allocation 磁盘分配包括连续分配、链式分配、索引分配。

If there is a sequential file with 3550 blocks, then how many times are needed to access disk for get the content in No.1917 block答案1

In paging, how many times is requried to access memory for get given data or instruction答案2

In paging memory management, which one translates a logical address into a physical address答案hardware and operating system硬件和操作系统把逻辑地址转为物理地址

In paging, the system needs a pair of regiesters, they are(应该是registers) 答案page table base register and page table length register页表基址寄存器、页表长度寄存器

Which of the following strategies not need base register and length register答案fixed-sized partitions memory-management固定大小的分区内存管理不需要基址和长度寄存器

In paging memory management, what is needed for address translation答案page table地址转换需要页表

Memory address space is often called 答案physical address space内存地址空间叫做物理地址空间

Which of the following methods is used to increase the number of processes sharing the CPU答案Swapping交换可以让更多的进程共享CPU

What refers to the page replacement algorithm which replaces the page that has not been used for the longest period of time答案LRU

Which of the following algoritms may cause Belady’s Anomaly(应该是algorithms) 答案FIFO(Belady异常:页错误率随着所分配的帧数的增加而增加)

In segmentation management, if the segment number is larger than the length of segmenation table, the system will (题中应该是segmentation) 答案trap into addressing error段号大于段表长度会陷入寻址错误

In fixed partition management, the sizes of each partition
答案may be different as previously arranged

Which is wrong about compaction紧凑技术) 答案any program in memory can be moved by compaction

In memory management, the operation that translates logical addresses in object program to physical addresses in main memory is called 答案address relocation地址重定位将逻辑地址转为物理地址

Which structure of the followings can not be affected by the file length答案sequential structure顺序结构

The function of the system call “file open” is 答案bring information such as file attributes into memory

Sequential access can be only applied to 答案linked file

Which is wrong about current directory答案seach file based on full path应该使用相对路径

A static partitioned memory management system has a total of six partitions. If one is allocated to the operating system, this will allow a total of 答案five user jobs有六个分区1个给OS,剩下5个给用户作业

In variable partition management, free frames are better to be organized in which order for best-fit allocation答案ascending capacity

In memory management, the method which is able to expand memory capacity is 答案virtual memory虚拟内存可以扩展内存容量

In virtual paging management, the increasement of page number will the number of page fault in FIFO. 答案increase or reduce增加页码可能提高也可能减少页错误

In memory management, the procedure that brings the unnecessary part out of memroy for bringing other processes into memory is called 答案swap把无用部分移出内存,把其他进程带入内存叫做交换

Which of the following information bits used by the various page replacement policies indicates if the page has been called lately答案Referenced bit参考位表示页最近被调用过

Sequential access can be only applied to 答案linked file顺序访问只能应用于链接文件

In dynamic address mapping, the high speed memory with parallel searching is 答案TLB动态地址映射中并行搜索的高速存储器叫做快表(页表缓冲)

In virtual memory, which one is used to decide if it is necessary to save the page back to external storage答案modified bit

In file system, the system call “seek” is used for 答案moving the file pointer to a given position系统调用中的seek用于移动指针到指定位置

The FCB is created in which system call答案create文件控制块由系统调用create创建

Which of the following free-space management strategies is not supported by an operating system答案Hash空闲空间管理策略里哈希不受操作系统支持

进程管理:

If a process is waiting for printer to continue executing, it is under which sate答案waiting

What state is a process in when it can not run because it needs a resource to become available答案Blocked等待资源是被阻塞状态

In operating system, which sturcture is used for controlling and managing the process execution 答案process control block进程控制块

Which information is not included in PCB 答案page size进程控制块中不含页大小

Which one can identify the existence and state of a process 答案PCB进程控制块可以识别进程的存在和状态

With indirect communication, the messages are sent to and received from__________. 答案mailbox使用间接通信,邮件将发送到邮箱并从邮箱接收

In banch system, job scheduling program chooses multiple jobs from the job queue and put them into(应该是branch答案memory

In operating system, when a process turns to ready from running, it indicates 答案time-slice is used out由运行变成就绪表示时间片用完了

When a process changes state, which of the following conversion will not occur答案Running->Ready

Which of the following CPU scheduling algorithms give minimum average waiting time for a given set of processes答案SJF最短时间优先的平均等待时间最小

Which one is not a necessary condition of deadlock 答案unbounded waiting死锁必要条件是互斥mutual exclusion、占有并等待hold and wait、非抢占no preemption、循环等待circular wait

Which is true about safe state答案if the system is under an unsafe state, deadlock might happen不安全状态可能导致死锁

Which one of the followings is true about resource allocation graph答案resource allocation graph is a directed graph, which is used to present the state between system resources and processes at some time资源分配图是有向图,用于在某些时间呈现系统资源和进程之间的状态

Preemption allocation strategies can be applied to . 答案CPU management抢占分配策略可用于CPU管理

Which one of the followings belongs to deadlock avoidance死锁避免 答案ordered resource allocation有序资源分配(安全序列)

The simplest way to break a deadlock is to 答案kill one of the processes解决死锁最简单的方法是结束一个进程

Process cooperation in a Readers-and-Writers problem requires that the 答案Readers always call two procedures读写者问题中处理合作需要读者总是调用两个程序

Primitive is原语的执行必须是连续的,在执行过程中不允许被中断。 答案composed by multiple machine instructions, which can not be interrupted

Which of the following statements is not true regarding a monitor where no condition variable is defined答案Processes can be blocked inside the monitor.没有定义条件变量不会被阻塞

The wait operation defined on semaphores means 答案allocate a resource信号量上的等待操作表示分配资源

One process may include many threads. Which one of the followings is not occupied by only thread答案memory space内存空间不仅仅被线程占用

Which function is used for starting a process答案exec()表示执行进程

Which is set in program state word (PSW) to avoid the user program executing special instructions 答案CPU state bit CPU状态标志位可以避免用户程序执行特殊指令

Which one of the following is not a feature of process 答案static

A process may be in one of the following states, except ________. 答案interrupted进程不会处于中断状态(中断会使进程由运行变成就绪)

Which one of the followings is not a method for communication between processes. 答案semaphore operations wait and signal进程间通信

Which of the followings is not a condition for deadlock答案Starvation死锁条件没有饥饿

Suppose there are three threads and each of them need two resource of the same type, in order to avoid deadlock appearing, how many resources does the system need at least答案4,至少有一个线程拥有2个资源,所以总共至少要有4个。

Ordered resource allocation can achieve which of the following objective答案deadlock prevention有序资源分配可以实现死锁预防

There are many algorithms that are able to apply to schedule processes. If we choose an algorithm not such proper, what problem would happen答案long-term waiting

For N processes associated to the same critical section, the initial value of mutex semaphore should be set to
答案1互斥信号量初始应该为1

Multiple concurrent processes use a mutex semaphore “m”. That “m=0” means 答案There is one process in critical section

In computer system, if the initial value of semaphore S is 3, current value -2 indicates that there are processes are waiting for S. 答案2

Which one of the following may cause deadlock 答案multiple processes are waiting each other for resources occupied by others互相等待

Which of the following CPU scheduling algorithms give minimum average waiting time for a given set of processes答案SJF

The following algorithm is proposed to solve the critical section problem between two processes P1 and P2, where lock is a shared variable.Which of the following statements is true regarding the proposed algorithmP1: do { while (lock) { NULL;} lock = TRUE; critical section; lock=FALSE; reminder section; } while(TRUE); P2: do { while(lock) { NULL;} lock = TRUE; critical section; lock=FALSE; reminder section; } while(TRUE); 答案Both processes can be in their critical section at the same time.

Process cooperation in a Readers-and-Writers problem requires that the 答案Readers always call two procedures

Which is not one of the major differences between user-level threads and kernel-level threads答案One user-level thread can be only mapped be one kernel thread. 一个用户级线程只能映射成一个内核线程。

Using round-robin scheduling algorithm, if the CPU burst of the currently running process is longer than 1 time quantum, which statement is wrong答案The process itself will release the CPU voluntarily.

If there are five processes in the system, how many processes at most may be under the waiting state at the same time. 答案5

文章知识点与官方知识档案匹配,可进一步学习相关知识云原生入门技能树首页概览8578 人正在系统学习中 相关资源:【内存遍历工具】Cheat.Engine.V5.4.简体中文版-专业指导文档类…

来源:weixin_33824363

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年11月18日
下一篇 2017年11月18日

相关推荐