CIS3530 – Worksheet 10 Solved

$ 29.99
Category:

Description

Question 1: For each of the schedules, answer the following questions:

i. What is the precedence graph for the schedule?
ii. Is the schedule serializable? If so, what are all the equivalent serial schedules?

A.
๐‘‡” ๐‘‡$
Read (A)
Write (A)

Read (C)
Write (C)

Read (B)
Write (B)

B.
๐‘‡” ๐‘‡$
Read(X)
X = X โ€“ N

Write(X)
Read(Y)

Y = Y + N
Write(Y)

Read(X)
X = X + M

Write(X)

๐‘‡” ๐‘‡$
Read(X)
X = X โ€“ N
Write(X)

Read(Y)
Y = Y + N
Write(Y)

Read(X)
X = X + M
Write(X)
C.

D.
๐‘‡” ๐‘‡$ ๐‘‡%
Read(X)

Read(Y)

Write(X)

Read(Y)

Write(Y)

Write(Z)
Read(Z)
Write(Z)

Write(X)

E.

๐‘‡” ๐‘‡$ ๐‘‡%
Read(A)

Write(A)

Write(C)
Read(B)

Read(C)
Read(B)
Write (B)

Read( B)

Question 2: (Optional) Match the following schedules with terms in box on the right (i โ€“ viii). Note that:

Your answer:
Your answer:
Your answer:

TERMS:

i. Serializable schedule

ii. Dirty Read conflict
iii.
Unrepeatable read

iv.
Phantom read
v. Serial schedule

vi.
Lost update conflict
vii. Non-serial schedule

viii.
Use of UNDO logs

Your answer:

Reviews

There are no reviews yet.

Be the first to review “CIS3530 – Worksheet 10 Solved”

Your email address will not be published. Required fields are marked *