• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 5 pages
Exam (elaborations)

Operating Systems Exam 2 Updated Questions And Correct Answers

Document preview thumbnail
Preview 2 out of 5 pages

Operating Systems Exam 2 UPDATED QUESTIONS AND CORRECT ANSWERS Peterson's Solution is used to solve the problem of - CORRECT ANSWER synchronization Windows uses the _____ multi-threading model. - CORRECT ANSWER Which of the following about a semaphore is wrong? - CORRECT ANSWER process one-to-one Two processes should contain at most one common semaphore in order to prevent the interleaving execution of their critical sections. A mutex lock _____. - CORRECT ANSWER execution from being interleaved by other processes. can be used to protect the critical section's A solution to the critical section problem does NOT have to satisfy which of the following requirements? - CORRECT ANSWER atomicity If without deadlock, at most how many philosophers can eat simultaneously in the Dining Philosophers problem with 5 philosophers? - CORRECT ANSWER 2 In the FCFS (First Come First Served) scheduling algorithm, which of the following describes the phenomenon that when a process with a long CPU burst uses the CPU and short processes have to wait? - CORRECT ANSWER convoy effect Which of the following algorithms works the best for time-sharing systems? - CORRECT ANSWER Round Robin (RR)

Content preview

Operating Systems Exam 2 UPDATED
QUESTIONS AND CORRECT ANSWERS
Peterson's Solution is used to solve the problem of - CORRECT ANSWER process
synchronization



Windows uses the _____ multi-threading model. - CORRECT ANSWER one-to-one



Which of the following about a semaphore is wrong? - CORRECT ANSWER Two processes
should contain at most one common semaphore in order to prevent the interleaving execution of their
critical sections.



A mutex lock _____. - CORRECT ANSWER can be used to protect the critical section's
execution from being interleaved by other processes.



A solution to the critical section problem does NOT have to satisfy which of the following
requirements? - CORRECT ANSWER atomicity



If without deadlock, at most how many philosophers can eat simultaneously in the Dining
Philosophers problem with 5 philosophers? - CORRECT ANSWER 2



In the FCFS (First Come First Served) scheduling algorithm, which of the following describes the
phenomenon that when a process with a long CPU burst uses the CPU and short processes have to
wait? - CORRECT ANSWER convoy effect



Which of the following algorithms works the best for time-sharing systems? - CORRECT ANSWER
Round Robin (RR)



The process of context switch is performed by the _____. - CORRECT ANSWER dispatcher



Which of the following refers to the number of processes completed per time unit? - CORRECT
ANSWER Throughput

, In chapter 5 - Process Synchronization, what data structure is used in the Producer-Consumer
Problem? - CORRECT ANSWER circular array



Which of the following simulates the deadlock problem in computer systems? - CORRECT
ANSWER Dining-Philosophers problem



In the Producer-Consumer Problem, the variable "counter" records the number of items in the buffer.
The value of "counter" can be wrong when the Producer process executes "counter++" and the
Consumer process executes "counter--" at the same time, because _____. - CORRECT ANSWER
The executions of "counter++" in the Producer process and "counter--" in the Consumer
process interleave



A binary semaphore still has busy waiting. - CORRECT ANSWER True



In the Readers and Writers Problem, there is one mutex lock for process synchronization. -
CORRECT ANSWER False



Compared with context switching of processes, switching between threads has lower overhead. -
CORRECT ANSWER True



Multi-threaded applications have multiple threads within a single process. All threads share their
program counter, stack, set of registers, common code and data. - CORRECT ANSWER False,



Each thread has their own program counter, stack, and registers.

Multi-threaded applications only share common code and data.



Shortest-Job-First algorithm is non-preemptive. If we make it preemptive, we get the Shortest-
Remaining-Time-First algorithm. - CORRECT ANSWER True



In the Round Robin algorithm, smaller time quantum can cause higher overhead for context switches
in total. - CORRECT ANSWER True



A multi-threaded process can run on multiple processors but a single-threaded process can only run on
one processor even if there're many processors available. - CORRECT ANSWER True

Document information

Uploaded on
July 2, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
70
Followers
2
Items
10481
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions