0% found this document useful (0 votes)
40 views5 pages

Assignment 2. CSPD 123.

This document contains an assignment for an operating systems course. It includes: 1) Instructions for students to include their name, ID, and other submission details. Late submissions will not be accepted and cheating is prohibited. 2) The assignment contains two parts - Part A with two questions worth 3 marks each, and Part B with one question worth 4 marks. 3) Part A asks about the distinction between kernel and user mode as a protection mechanism, and which operations should be privileged. Part B asks the student to compare multiprogramming and timesharing operating systems. 4) The assignment is due on May 11th 2023 and will be graded out of 10 total marks.

Uploaded by

Fahad Alanazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views5 pages

Assignment 2. CSPD 123.

This document contains an assignment for an operating systems course. It includes: 1) Instructions for students to include their name, ID, and other submission details. Late submissions will not be accepted and cheating is prohibited. 2) The assignment contains two parts - Part A with two questions worth 3 marks each, and Part B with one question worth 4 marks. 3) Part A asks about the distinction between kernel and user mode as a protection mechanism, and which operations should be privileged. Part B asks the student to compare multiprogramming and timesharing operating systems. 4) The assignment is due on May 11th 2023 and will be graded out of 10 total marks.

Uploaded by

Fahad Alanazi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Kingdom of Saudi Arabia ‫المملكة العربية الســــعـودية‬

Ministry of Higher Education ‫وزارة التعليم العـــــــالي‬


Majmaah University, ‫جامــــــــــــــــعة المجمعة‬
Applied College, Computer Section
‫الكلية التطبيقية قسم الحاسب‬

OPERATING SYSTEM- CSPD 123

Spring 2023

Assignment 2

Due Date: 11 May 2023

Student Name
Student ID
Instructor Dr. Mohammed A. Baljoun

Marks Information
Submission Guidelines:
Question Max. Marks
1. Please make sure to include Number Marks Earned
this cover page in all your Per
Question
submissions. Part A
2. Late submissions won’t be
accepted. Q1 3
3. Cheating is prohibited; if Q2 3
caught identical work both Part B
will take zero.
Q7 4
TOTAL MARKS (10)
Kingdom of Saudi Arabia ‫المملكة العربية الســــعـودية‬
Ministry of Higher Education ‫وزارة التعليم العـــــــالي‬
Majmaah University, ‫جامــــــــــــــــعة المجمعة‬
Applied College, Computer Section
‫الكلية التطبيقية قسم الحاسب‬

Part A

1. a. How does the distinction between kernel mode and user mode function as a
rudimentary form of protection (security) system? (4 Marks)
b. Which of the following instructions should be privileged?
a. Set value of timer.
b. Read the clock.
c. Clear memory.
d. Issue a trap instruction.
e. Turn off interrupts.
f. Modify entries in device-status table.
g. Switch from user to kernel mode.
h. Access I/O device
Answer:
a.



 .

b.
The following operations need to be privileged:




 .
The rest can be performed in user mode.
Kingdom of Saudi Arabia ‫المملكة العربية الســــعـودية‬
Ministry of Higher Education ‫وزارة التعليم العـــــــالي‬
Majmaah University, ‫جامــــــــــــــــعة المجمعة‬
Applied College, Computer Section
‫الكلية التطبيقية قسم الحاسب‬

2. What is an interrupt? Explain how does an operating system handle them. (3


Marks)

Answer:
 Hardware interrupt:

 Software Interrupt:

How does an operating system handle them




 .
Kingdom of Saudi Arabia ‫المملكة العربية الســــعـودية‬
Ministry of Higher Education ‫وزارة التعليم العـــــــالي‬
Majmaah University, ‫جامــــــــــــــــعة المجمعة‬
Applied College, Computer Section
‫الكلية التطبيقية قسم الحاسب‬

Part B
3. Compare Multiprogramming operating system with Timesharing operating
system. (4 Marks)
Answer:
 Multiprogramming operating system :

 Timesharing operating system :


‫‪Kingdom of Saudi Arabia‬‬ ‫المملكة العربية الســــعـودية‬
‫‪Ministry of Higher Education‬‬ ‫وزارة التعليم العـــــــالي‬
‫‪Majmaah University,‬‬ ‫جامــــــــــــــــعة المجمعة‬
‫‪Applied College, Computer Section‬‬
‫الكلية التطبيقية قسم الحاسب‬

You might also like