Basic synchronization, Operating System

(Add synchronization to your solutions to HW 3 to eliminate all of the race conditions.  You should not remove any of the sleep() commands that you used to produce the race conditions, but simply add the necessary mutex synchronization calls.  Your writeup should include high level pseudocode explaining the logic of your synchronization strategy using ordinary semaphores (init, p(), v()); your implementation should use the synchronization primitives of the programming API you are using (Posix & Win32).  Submit design documentation, wellXcommented source code & annotated output for this part of the assignment.

Posted Date: 3/13/2013 4:04:42 AM | Location : United States







Related Discussions:- Basic synchronization, Assignment Help, Ask Question on Basic synchronization, Get Answer, Expert's Help, Basic synchronization Discussions

Write discussion on Basic synchronization
Your posts are moderated
Related Questions
Explain the Advantage of Assembly Language The advantages of assembly language program is: a)    Reduced errors  b)    Faster translation times  c)    Changes could be ma

Describe the differences between foreground and background processing. What advantage does background processing provide? 1. Background processes typically run with little or no

Buffering Messages exchanged by communication processes reside in a impermanent queue. Such a queue can be executed in three ways. Zero capacity: The queue length is 0.

What is parsing Parsing is the procedure of analyzing a text, made of a sequence of tokens, to define its grammatical structure regarding to a given formal grammar. Parsing is

What are turnaround time and response time? Turnaround time is the interval among the submission of a job and its completion. Response time is the interval among submission

Write a Perl script assignGrades.pl to assign letter grades to the students.


How could we implement locks? No matter how we choose to implement them, we must have some hardware support. One possibility for implementing locks on a uniprocessor machine is is

Define thrashing. Thrashing is the accident of high page traffic and low CPU utilization. It is observed that the cause of thrashing is an under-commitment of memory to program

Elimination of common sub expression during code optimization An optimizing transformation is a rule for rewriting a section of a program to enhance its execution efficiency wi