Global Memory Systems The context for this question is the…

Global Memory Systems The context for this question is the same as the previous question. [5 points] Consider a GMS system with 10 Nodes ‘A’ to ‘J’. A process ‘x’ on Node ‘A’ intends to read-share a page that is  currently actively used only by a process ‘y’ on Node ‘B’.When Node A’s GMS mechanism initiates the access, indicate on which Node(s) each of the following data structures  are accessed.Assume no co-location constraints for any of the data structures b) [1 point] GCD

Distributed Shared Memory The context for this question is t…

Distributed Shared Memory The context for this question is the same as the previous question. [8 points] In Treadmarks DSM system the following critical section is executed at a node N1: Lock(L1); // Assume X is the only page that been modified up to this point by prior acquirers of L1     Write to Page X;      // Assume that the page is not present at this node;      // Assume that there are three diff files for page X      // named Xd2, Xd3, and Xd4 in nodes N2, N3, and N4      // respectively.      // Assume the sync causality for the lock L1 is       // N3 -> N2 -> N1 (i.e, this is the order of lock     // acquisition).Unlock (L1); b) [2 points] What additional actions would be carried out by Treadmarks at Node 1 before the critical section  is executed by N1?

Spring OS The context for this question is the same as the p…

Spring OS The context for this question is the same as the previous question. [8 points] Your coworker is debugging a distributed payment processing service built on Spring OS. Currently, the client process hangs when ‘invoice.submit()’ is called. The client process runs on Node A, but the invoice service object lives on Node B on a LAN. Your coworker would like to better understand the runtime plumbing so they can trace, reproduce, and fix the bug. c) [3 points] At run time, explain the flow of the invocation from the client to the invoice service.

Distributed File Systems Background: The Google File System…

Distributed File Systems Background: The Google File System was designed a few years after xFS and is heavily influenced by xFS. GFS also separates its metadata management logic from its data storage. It uses a single “Master” server to store all file system metadata. It uses many “Chunkservers” to store actual data blocks. A client first contacts the single Master to get metadata and then contacts the Chunkservers directly to get data. Give one pro and one con of the GFS approach to metadata management.

Distributed Shared Memory The context for this question is t…

Distributed Shared Memory The context for this question is the same as the previous question. [8 points] In Treadmarks DSM system the following critical section is executed at a node N1: Lock(L1); // Assume X is the only page that been modified up to this point by prior acquirers of L1     Write to Page X;      // Assume that the page is not present at this node;      // Assume that there are three diff files for page X      // named Xd2, Xd3, and Xd4 in nodes N2, N3, and N4      // respectively.      // Assume the sync causality for the lock L1 is       // N3 -> N2 -> N1 (i.e, this is the order of lock     // acquisition).Unlock (L1); c) [2 points] Upon exiting the critical section what action would be carried out by Treadmarks at Node N1?

Lamport’s ME Algorithm The context for this question is the…

Lamport’s ME Algorithm The context for this question is the same as the previous question. [6 points] Consider a distributed system with 3 nodes (P1, P2, P3) implementing Lamport’s mutual exclusion algorithm, as shown in the Figure. The boxes represent requests made by a node at a particular timestamp. For example, P1,4 represents a request for the resource made by node P1 at timestamp 4. The red arrows represent requests, and green arrows represent the corresponding acknowledgment messages. c) [2 points] Suggest a simple method to prevent the algorithm from failing due to message loss.

Lamport’s ME Algorithm [6 points] Consider a distributed s…

Lamport’s ME Algorithm [6 points] Consider a distributed system with 3 nodes (P1, P2, P3) implementing Lamport’s mutual exclusion algorithm, as shown in the Figure. The boxes represent requests made by a node at a particular timestamp. For example, P1,4 represents a request for the resource made by node P1 at timestamp 4. The red arrows represent requests, and green arrows represent the corresponding acknowledgment messages. a) [2 points] Which node gets access to the resource first and at which point in time (T1-T7)? Justify your answer to get any credit.

Distributed Shared Memory [8 points] In Treadmarks DSM syste…

Distributed Shared Memory [8 points] In Treadmarks DSM system the following critical section is executed at a node N1: Lock(L1); // Assume X is the only page that been modified up to this point by prior acquirers of L1     Write to Page X;      // Assume that the page is not present at this node;      // Assume that there are three diff files for page X      // named Xd2, Xd3, and Xd4 in nodes N2, N3, and N4      // respectively.      // Assume the sync causality for the lock L1 is       // N3 -> N2 -> N1 (i.e, this is the order of lock     // acquisition).Unlock (L1); a) [2 points] What actions would be carried out by Treadmarks at the point of lock acquisition? Why?