Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Bank accounts a , b , c contain values , , , respectively. Concurrent transfers of certain amounts from accounts a , b to c

Bank accounts a,b,c contain values ,,, respectively. Concurrent transfers of certain amounts from accounts a,b
to c are carried out by the following programs (ra,rb are working variables):
transfer of 200 from account a to account c :
transfer of 50 from account b to account c :
{:[if(a200),ABORTelse]{a:=a-200;ra:=c;ra:=ra+200;c:=ra},|[if{b50}| ABORT else ],[{b:=b-50;rb:=c;rb:=rb+50;c:=rb}]|
What may be the balance of the c account after transfers when:
update c is not protected by a critical section? List all possible values of c.
update c is protected then c=dots
In the Cristian's clock synchronization method, the client sends an order to the time server and receives a
response T.4 milliseconds elapsed from the order to receiving the response, and the server used 2 millisecond to
prepare and send the response. By how many milliseconds does the client increase the received time T to
synchronize its local time with the server time?
Here is an image of the communication between the three processes according to their local clocks:
Which xy communications require time compensation so that the implication occurs: xy=>C(x)C(y) for any
events x,y, in the above diagram, where C(x),C(y) are the compensated time stamps of these events.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions