CS 240 Study Guide - Quiz Guide: Virtual Memory, C Dynamic Memory Allocation, Race Condition

23 views14 pages

Document Summary

These are all of the answers to the sample questions. However, they are given without a clear mapping from question to answer. Increasing the free list size will let them e ectively use more than that since they can ll up the freelist with their pages which are rescued on use. For example, the following contrived execution sequence would prevent eraser from. Agging that t2 does an unprotected access to variable x: 1 x++; unlock(a): if a monitor sleeps holding the lock waiting on a condition it must release it otherwise no other thread can enter the monitor to make the condition true. This is also true in linux with the addition that there is no other monitor, so it must always release the lock since otherwise the os cannot run at all. So at each sleep point, the kernel releases the blk and then when the thread wakes up, reaquires it.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents