Consider hierarchic locks as illustrated in Figure 16.26. What locks must be set when an
appointment is assigned to a time-slot in week w, day d, at time, t? In what order should these locks
be set? Does the order in which they are released matter?
What locks must be set when the time slots for every day in week w are viewed?
Can this be done when the locks for assigning an appointment to a time-slot are already set?

What will be an ideal response?

Set write lock on the time-slot t, intention-to-write locks on week w and day d in week w. The locks should be
set from the top downwards (i.e. week w then day d then time t). The order in which locks are released does
matter - they should be released from the bottom up.
When week w is viewed as a whole, a read lock should be set on week w. An intention-to-write lock is already
set on week w (for assigning an appointment), the read lock must wait

Computer Science & Information Technology

You might also like to view...

To ensure that a Word 2013 document can be opened in an earlier version of Word, you would click ________

A) Check Compatibility B) AutoRecover C) Document Inspector D) Properties

Computer Science & Information Technology

If a method throws an exception, and the exception is not caught inside the method, then the method invocation:

(a) terminates (b) transfers control to the catch block (c) transfers control to the exception handler (d) none of the above

Computer Science & Information Technology