web viewand the memory reserved part for the operating system is . ... 6.66% . author: shiyam...

4
Princess Nora Bint Abdulrahman University NET201- Principles of Information & Technology Systems Faculty of Computer and Information Sciences First Semester 1437/1438 H Department of Networks and Telecommunications Tutorial 3 – Operating Systems Q1) Choose the correct answer: 1- Multiprogramming requires a ……..……. Operating system. a- Batch b-Time-sharing c-Parallel d-Distributed 2- ……….…… is a multiprogramming with swapping. a-Partitioning b-Paging c-Demand paging d-Queuing 3- In ……………, only one program can reside in memory for execution. a-Monoprogramming b-Multiprogramming c-Partitioning d-Paging 4- ………… is a multiprogramming method in which multiple programs are entirely in memory with each program occupying a contiguous space. a-Partitioning b-Paging c-Demand paging d-Demand segmentation 5- In paging, a program is divided into equally sized sections called………… . a-Pages

Upload: vuonglien

Post on 04-Feb-2018

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Web viewand the memory reserved part for the operating system is . ... 6.66% . Author: Shiyam Created Date: 02/04/2014 03:25:00 Last modified by: Suad Fai. Almutairi

Princess Nora Bint Abdulrahman University NET201- Principles of Information & Technology Systems Faculty of Computer and Information Sciences First Semester 1437/1438 HDepartment of Networks and Telecommunications Tutorial 3 – Operating Systems

Q1) Choose the correct answer:

1- Multiprogramming requires a ……..……. Operating system.a- Batchb- Time-sharingc- Paralleld- Distributed

2- ……….…… is a multiprogramming with swapping.a- Partitioningb- Pagingc- Demand pagingd- Queuing

3- In ……………, only one program can reside in memory for execution.a- Monoprogrammingb- Multiprogrammingc- Partitioning d- Paging

4- ………… is a multiprogramming method in which multiple programs are entirely in memory with each program occupying a contiguous space.

a- Partitioningb- Pagingc- Demand pagingd- Demand segmentation

5- In paging, a program is divided into equally sized sections called………… .a- Pagesb- Framesc- Segmentsd- Partitions

Page 2: Web viewand the memory reserved part for the operating system is . ... 6.66% . Author: Shiyam Created Date: 02/04/2014 03:25:00 Last modified by: Suad Fai. Almutairi

Princess Nora Bint Abdulrahman University NET201- Principles of Information & Technology Systems Faculty of Computer and Information Sciences First Semester 1437/1438 HDepartment of Networks and Telecommunications Tutorial 3 – Operating Systems

Q2) Solve the followings:

6- A computer has a monoprogramming operating system. If the size of memory is 64 MB and the memory reserved part for the operating system is 4 MB, what is the maximum size of program that can be run by this computer?

64 – 4 = 60 MB

7- Monoprogramming operating system runs programs that on average need 10 microseconds access to the CPU and 70 microseconds access to the I/O devices. What percentage of time is the CPU idle?

70 / (70 + 10) × 100 = 87.5%

8- A multiprogramming operating system divides a 60 MB of memory into 4 partitions as follows: the first partition is 10 MB, the second is 12 MB, the third is 18 MB and the fourth is 20 MB.The first program needs 17 MB to be run and occupies the third partition, the second program needs 8 MB and occupies the first partition, the third program needs 10.5 MB and occupies the second partition. Finally, the fourth program needs 20 MB and occupies the fourth partition.

The following figure shows the partitions and memory used by each program.

a) What is the total memory used? 8+10.5+17+20 = 55.5 MB

b) What is the total memory wasted? 60 – 55.5 = 4.5 MB

Or 2+1.5+1=4.5 MB

c) What percentage of memory is wasted? Percent memory wasted = 4.5 / 60 × 100 = 7.5%

Page 3: Web viewand the memory reserved part for the operating system is . ... 6.66% . Author: Shiyam Created Date: 02/04/2014 03:25:00 Last modified by: Suad Fai. Almutairi

Princess Nora Bint Abdulrahman University NET201- Principles of Information & Technology Systems Faculty of Computer and Information Sciences First Semester 1437/1438 HDepartment of Networks and Telecommunications Tutorial 3 – Operating Systems

9- A multiprogramming operating system uses paging,. The available memory is 60 MB divided into 15 frames, each of 4 MB. The first program needs 13 MB, the second program needs 12 MB, the third program needs 27 MB.

a) How many frames are used by the first / second / third program?

P1 = 13/4= 3.4 = 4 framesp2 = 12 / 4 = 3 framesP3 = 27 / 4 = 6.75 = 7 frames

b) How many frames are un-used the used frames are

4 + 3 + 7 = 14 = 15- 14= 1 so the un-used frame is only one

c) What is the total memory un-used ?

1 frame = 4 MB

d) What percentage of memory is un-used ?

(4 / 60) × 100 = 6.66%