CS350 Study Guide - Midterm Guide: Earthbound, Complement Factor B, Readwrite

55 views9 pages
8 Oct 2014
Course
Professor

Document Summary

Read all of the following information before starting the exam: please keep your written answers brief; be clear and to the point. You do not need to ll the whole space provided for answers: this test has 6 problems and 9 pages (including the cover and a blank page). Make sure that you have all of the pages: this is a closed book exam. No additional material is allowed: good luck! Give two examples of how a thread can go directly from running state to ready state. Problem 2. (12 points: (3 pts) what are the requirements that must be satis ed for shared access to a critical section, (4 pts) Consider the following solution to the critical section problem involving only two threads. Initially false */ flag[i] = true; while (flag[1-i]) {} < critical section > flag[i] = false: (5 pts)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers