云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > 操作系统第九版部分课后作业习题答案

操作系统第九版部分课后作业习题答案

  • 62 次阅读
  • 3 次下载
  • 2025/5/3 11:35:06

9.27.Consider a demand-paging system with the following time-measured utilizations: CPU utilization 20% Paging disk 97.7% Other I/O devices 5%

Which (if any) of the following will (probably) improve CPU utilization? Explain your answer. a. Install a faster CPU. b. Install a bigger paging disk.

c. Increase the degree of multiprogramming. d. Decrease the degree of multiprogramming. e. Install more main memory.

f. Install a faster hard disk or multiple controllers with multiple hard disks.

g. Add prepaging to the page fetch algorithms. h. Increase the page size.

Answer: The system obviously is spending most of its time paging, indicating over-allocation

of memory. If the level of multiprogramming is reduced resident processes

would page fault less frequently and the CPU utilization would improve. Another way to

improve performance would be to get more physical memory or a faster paging drum. a. Get a faster CPU—No. b. Get a bigger paging drum—No.

c. Increase the degree of multiprogramming—No. d. Decrease the degree of multiprogramming—Yes. e.

Install

more

main

memory—Likely

to

improve CPU utilization as more pages can

remain resident and not require paging to or from the disks. f. Install a faster hard disk, or multiple controllers with multiple hard disks—Also an

improvement, for as the disk bottleneck is removed by faster response and more

throughput to the disks, the CPU will get more data more quickly.

g. Add prepaging to the page fetch algorithms—Again, the CPU will get more data

faster, so it will be more in use. This is only the case if the paging action is amenable

to prefetching (i.e., some of the access is sequential). h. Increase the page size—Increasing the page size will result in fewer page faults if

data is being accessed sequentially. If data access is more or less random, more

paging action could ensue because fewer pages can be kept in memory and more

data is transferred per page fault. So this change is as likely to decrease utilization as it is to increase it.

10.1、Is disk scheduling, other than FCFS scheduling, useful in a single-user

environment? Explain your answer.

Answer: In a single-user environment, the I/O queue usually is empty.

Requests generally arrive from a single process for one block or

for

a

sequence of consecutive blocks. In these cases, FCFS is an economical

method of disk scheduling. But LOOK is nearly as easy to program and will give much better performance when multiple processes are

performing concurrent I/O, such as when aWeb browser retrieves data

in the background while the operating system is paging and

another

application is active in the foreground.

10.2.Explain why SSTF scheduling tends to favor middle cylinders over the

innermost and outermost cylinders.

The center of the disk is the location having the smallest average distance to all other tracks.Thus the disk head tends to

move

away from the edges of the disk.Here is another way to think of

it.The

current location of the head divides the cylinders into two groups.If

the head is not in the center of the disk and a new request arrives,the

new request is more likely to be in the group that includes the center

of the disk;thus,the head is more likely to move in that direction.

10.11、Suppose that a disk drive has 5000 cylinders, numbered 0 to 4999. The drive is currently serving a request at cylinder 143, and the previous request was at cylinder 125. The queue of pending requests, in FIFO order, is

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

9.27.Consider a demand-paging system with the following time-measured utilizations: CPU utilization 20% Paging disk 97.7% Other I/O devices 5% Which (if any) of the following will (probably) improve CPU utilization? Explain your answer. a. Install a faster CPU. b. Install a bigger paging disk. c. Increase the degree of multiprogramming. d. Decrease the degree of multiprogramming.

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com