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

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

存储管理:

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 algorithm?
P1:
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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 156,265评论 4 359
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 66,274评论 1 288
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 106,087评论 0 237
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,479评论 0 203
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 51,782评论 3 285
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,218评论 1 207
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,594评论 2 309
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,316评论 0 194
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 33,955评论 1 237
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,274评论 2 240
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 31,803评论 1 255
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,177评论 2 250
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 32,732评论 3 229
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 25,953评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,687评论 0 192
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,263评论 2 267
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,189评论 2 258

推荐阅读更多精彩内容