As per the given question,
transfers $500 from A to B and transfers 30% of the balance from A to B
a) followed by
Transaction
read(A)
A:=A-500
write (A)
read(B)
B:=B+500
write(B)
Transaction
read(A)
temp:=A*0.3
A:=A-temp
write(A)
read(B)
B:=B+temp
write(B)
b) Serial schedule followed by
Transaction ()
read(A)
A:=A-500
write(A)
Transaction :
read(A)
temp:=A*0.3
A:=A-temp
write(A)
Transaction ()
read(B)
B:=B+500
write(B)
Transaction :
read(B)
B:=B+temp
write(B)
c) The main advantages of serial scheduling, it gives the guarantee for data consistency.
It have the high average waiting time, low response time and low throughput could be possible.
Comments