IPCAssignment

Reviews
Shared by: Arvind Kiwelekar
Categories
Tags
Stats
views:
35
rating:
not rated
reviews:
0
posted:
2/25/2009
language:
English
pages:
0
M. Tech. in Computer Engineering Advanced Operating System Assignment 4 February 16, 2007 1 Theory Questions 1. Give an analogy between messages and semaphores. Why are semaphores more efficient than message passing? 2. What is the difference between a port and a message queue? When are blocking receives useful? What is the advantage of a blocking send? 3. Show a deadlock using semaphores. Give the program for each process. 4. What is the difference between ignoring a signal and blocking it? 5. Consider a statement, ” Any synchronization problem that can be solved with semaphores can be solved with messages, and vice versa”? Is this statement true or false? Explain the reasoning you used to come up with your answer. 6. Broadcasting a message can be implemented by sending a copy of of the message to each destination. This can be very expensive in use of memory, particularly as the size of messages, and the number of of destinations grow. Suggest an optimization. 7. Discuss the respective advantages of having one system wide buffer for all messages, one buffer per destination process, or one buffer per message stream, when using asynchronous message passing. 8. What is the essential difference between a monitor and an object. 9. Instead of blocking, a monitor could return a message saying ’busy-tryagain later’. Discuss the implementation of this. 10. Devise a protocol which would prevent a reader blocking on an empty pipe. 1 11. Suggest how you would implement a peek() function for pipes. This looks at the contents of the pipe, but does not remove it. 12. Devise a protocol by which a writer to a pipe could communicate the length of a message to a reader. 2

premium docs
Other docs by Arvind Kiwelek...
ProductMetrics
Views: 16  |  Downloads: 2
ProductMetrics-I
Views: 1  |  Downloads: 1
LabAssign
Views: 31  |  Downloads: 8
Assignment 5
Views: 52  |  Downloads: 6
Bulding Analysis Model
Views: 59  |  Downloads: 7
design1
Views: 14  |  Downloads: 8
marks
Views: 31  |  Downloads: 10
SemaphoreAssignment
Views: 44  |  Downloads: 18
SignalsAssignment
Views: 26  |  Downloads: 16
ThreadAssignment
Views: 37  |  Downloads: 16
OtherIPCMechanisms
Views: 32  |  Downloads: 19
tm1
Views: 25  |  Downloads: 3
forkAndExit
Views: 25  |  Downloads: 6
marks
Views: 5  |  Downloads: 1
semaphore
Views: 267  |  Downloads: 23