Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 20 pages
Other

CP386 FINAL EXAM REVIEW for 14th DEC 2025 Operating System Wilfrid Laurier University

Document preview thumbnail
Preview 3 out of 20 pages

CP386 FINAL EXAM REVIEW for 14th DEC 2025 Operating System Wilfrid Laurier University

Content preview

CP386 FINAL EXAM REVIEW for 14th DEC 2025 Operating
System Wilfrid Laurier University




CP386 Final Exam Review
Chapter 6
• Bounded-buffer memory
o Counter set to 0
o Incremented by the producer after produces new buffer
o Decremented by the consumer after it consumes a buffer
o Producer




o Consumer




• Race condition

, o When 2 processes try to manipulate the count variable concurrently
o Synchronization prevents race condition, in order to ensure that only one
process at a time is manipulating the variable
• Critical Section
o Where processes may be changing common variables, updating tables, writing to
files etc
o Solutions to Critical section Problem
▪ Mutual exclusion - When 1 process is in critical section, no other may be
in its critical section
▪ Progress – If no process is in critical section and there exist a process that
wish to enter their critical section, then that process will be selected
▪ Bounded Waiting

, • Petersons Solution (KNOW THE PSEUDOCODE)
o 2 variables are used
▪ Int turn; - Indicates whose turn it is to enter the critical section
▪ Boolean flag[2] – indicates if a process is ready to enter the critical
section
o Not guaranteed to work on modern computer architectures




• Memory Barriers
o When a memory barrier is performed, the system ensures that all loads and
stores are completed before any subsequent load or store operations are
performed
o Strongly ordered - where a memory modification on one processor is
immediately visible to all other processors.
o Weakly ordered - where modifications to memory on one processor may not be
immediately visible to other processors

Document information

Uploaded on
December 13, 2025
Number of pages
20
Written in
2025/2026
Type
Other
Person
Unknown
$16.49

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.
smartzone
3.6
(622)
Sold
3427
Followers
2298
Items
14819
Last sold
1 hour 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