ConcurrencySoln

ConcurrencySoln - CS 3204 Operating Systems Homework 4:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 3204 Operating Systems Homework 4: Concurrency Last modified: 12/12/2005 10:10 AM 1 Prepare your answers to the following questions either in a plain text file or in a Microsoft Word file. Answer each question clearly and concisely, and state conclusions using complete sentences. Explanatory tables and/or diagrams are acceptable, but there must always be a written discussion as well. Submit your file to the Curator system by the posted deadline for this assignment. No late submissions will be accepted. 1. [20 points] Consider the following proposed solution to the infinite-buffer producer-consumer problem (taken from Stallings and the notes on concurrency): According to Stallings, this solution is incorrect because it is possible for the producer and consumer to reach a deadlocked state. Demonstrate that deadlock is possible by creating a hypothetical trace (as shown on slides 21-22 of the concurrency notes) that results in deadlock. Producer
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/16/2008 for the course CS 3204 taught by Professor Gvback during the Spring '08 term at Virginia Tech.

Page1 / 2

ConcurrencySoln - CS 3204 Operating Systems Homework 4:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online