1 / 5

Sheet 6

Sheet 6. Transparencies. Q4. Consider the following actions in a distributed database system. Q4. Assume the following: Initially empty local and global wait-for graphs. Site 3 contains the deadlock coordinator. It takes 3 time units to send a message from Site 1 to Site 3.

joie
Download Presentation

Sheet 6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sheet 6 Transparencies

  2. Q4 • Consider the following actions in a distributed database system.

  3. Q4 • Assume the following: • Initially empty local and global wait-for graphs. • Site 3 contains the deadlock coordinator. • It takes 3 time units to send a message from Site 1 to Site 3. • It takes 1 time unit to send a message from Site 2 to Site 3. • Sites send updates to the local wait-for graph immediately to the deadlock coordinator. • When a lock is requested, it is immediately granted if it is not held by some other transaction (no delay between requesting a lock and granting it – they happen on the same time unit). • Decide the following: • Whether or not a cycle would occur and at what time unit. • If there is a cycle, is it false or real?

  4. Transactions table

  5. Extra Question (WFG) • Consider the following situation: We have 3 sites: S1, S2, and S3. S1 is the deadlock-detection coordinator. Information needs 1 time unit to travel from S2 to S1 and 2 time units to travel from S3 to S1. Show the global wait-for-graph at each time from t0 to t3 and indicate whether or not there is a cycle. And if there is a cycle indicate whether it is real or not. Initial Global graph at S1: T1 T2 T3

More Related