• 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 1 out of 3 pages
Exam (elaborations)

CMSC 421 Exam 2(Complete solutions)

Document preview thumbnail
Preview 1 out of 3 pages

Preemption correct answers Ability of the OS to interrupt a currently executing task and allocate the CPU to another task. Non-preemption correct answers Once a task starts executing, it continues until it completes or voluntarily gives up the CPU. Dispatcher correct answers The kernel routine that gives control of a core to the thread selected by the scheduler 1. Switches context from one process to another 2. Switches to user mode 3. Jumps to the proper location in the user program to resume that program Round Robin correct answers FCFS, but is preemptive If CPU burst of currently running process is longer than 1 time quantum, the timer will go off and cause an interrupt to the OS. Will then be added to back of queue. First Come First Serve (FCFS) correct answers The process that requests the CPU first is allocated the CPU first Shortest First Scheduling (SFS) correct answers CPU is always assigned to the process with the smallest CPU burst time Time Quantum (or Time Slice) correct answers A small unit of time used by scheduling algorithms as a basis for determining when to preempt a thread from the CPU to allow another to run Mutual Exclsuion correct answers Only 1 process can access its critical section at a time Mutex Lock correct answers Mutual exclusion lock Semaphore correct answers Atomic integer Counting Semaphore: 0 to N resources Binary Semaphore: 0 to 1 resources wait() when applying for a semaphore signal() when releasing a semaphore Monitors correct answers A high-level abstraction that provides a convenient and effective mechanism for process synchronization


Document information

Uploaded on
May 23, 2024
Number of pages
3
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$11.29

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
23
Followers
6
Items
4026
Last sold
1 month 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

Whoops! We can’t load your doc right now. Try again or contact support.