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
الكلية التطبيقية قسم الحاسب