اجابة نموذج الاختبار

advertisement
Kingdom of Saudi Arabia
‫بسم هللا الرحمن الرحيم‬
Ministry of Higher Education
Majmaah University
College Of Sciences in Alzulfi
-:‫رقم ورمز المادة‬
Model Answer
1436/2/11 -:‫تاريخ اإلمتحان‬
‫الـمـمـلكـة الـعـربـيـة الـسـعـوديـة‬
‫وزارة الـتـعـلـيـم الـعـالـي‬
‫جـامـعـة الـمـجـمـعـة‬
‫كلية العلوم بالزلفي‬
‫نظم التشغيل‬
-:‫الرقم الجامعي‬
-:‫اسم المادة‬
-:‫اسم الطالب‬
Question 1:
1. Starvation, aging.
2. Deadlock
3. Thread
4. throughput.
5. There is no cycles
Question 2:
1. b. Response time
2. c. Wait time
3. d. Multithreading
4. b. One-to-One.
5. c. RR
Question 3: What are the differences between the following:
 Concurrency and Parallelism
Parallelism implies a system can perform more than one task simultaneously. when tasks literally
run at the same time, eg. on a multicore processor.
Concurrency supports more than one task making progress multitasking on a single-core machine.
 Deadlock Prevention and Avoidance:
Deadlock Prevention : Require process to request and be allocated all its resources before it
begins execution, or allow process to request resources only when the process has none
allocated to it.
Disadvantages: Low resource utilization; starvation possible
Deadlock Avoidance: The deadlock-avoidance algorithm dynamically examines the
resource-allocation state to ensure that there can never be a circular-wait condition
 Shortest Job First and Shortest Remaining Time
Shortest Remaining Time is a preemptive SJF
Question 4:
1
Download