• 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(A+ Graded)

Document preview thumbnail
Preview 1 out of 3 pages

concurrency correct answers the act of multiple processes (or threads) executing at the same time. critical section (CS) correct answers a segment of code that cannot be entered by a process while another process is executing a corresponding segment of the code. guarantee mutual exclusion correct answers If a process is executing in its critical section, then no other processes can be executing in their critical sections prevent lockout correct answers A process not attempting to enter the CS must not prevent other processes from entering the CS. Critical Section Problem correct answers When one process is in it's Critical Section, no others can be. Each must ask permission to enter it's section. prevent starvation correct answers A process (or a group of processes) must not be able to repeatedly enter the CS while other processes are waiting to enter. prevent deadlock correct answers Multiple processes trying to enter the CS at the same time must not block each other indefinitely. semaphore correct answers s is a non-negative integer variable that can be accessed using only two special operations, P and V. Implementation of P and V must guarantee that... correct answers 1. If several processes simultaneously invoke P(s) or V(s), the operations will occur sequentially in some arbitrary order. 2. If more than one process is waiting inside P(s) for s to become 0 , one of the waiting processes is selected arbitrarily to complete the P(s) operation. test-and-set instruction (TS) correct answers copies a variable into a register and sets the variable to zero in one indivisible machine cycle. lock correct answers a synchronization barrier through which only one process can pass at a time. TS allows an easy implementation of a... correct answers lock binary semaphore correct answers integer value can range only between 0 and 1 Pb and Vb are... correct answers simplified P and V operations that manipulate binary semaphores. Pb and Vb on the binary semaphore sb can be implemented directly using the TS instruction... correct answers 1. Vb(sb): sb = 1


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.