Consider hierarchic locks. 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?
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.
You might also like to view...
Answer the following statements true (T) or false (F)
1. If a variable which is declared to be an integer is passed by value to a parameter which is declared to be a double, an error message will occur at compile time. 2. A function prototype must include the names of the parameters. 3. Constants that are declared to be global are available throughout the program in the main function and any function that does not redeclare that identifier. 4. The Newton–Raphson method algorithm for locating the root of a function is guaranteed to locate a root in a known number of iterations.
An int variable can hold __________.
a. 'x' b. 120 c. 120.0 d. "x" e. "120"
Which of the following would be the correct network classification with an equal number of octets in the network part and host part?
A) Class A B) Class B C) Class C D) Class D E) Class E
Explain how a one-to-many relationship is created using an Access database with two or more tables. Why is it useful to create a relationship between tables?
What will be an ideal response?