Question

In: Computer Science

14. Circle the correct answer: In a distributed memory architecture the interconnection network determines the speed...

14. Circle the correct answer: In a distributed memory architecture the interconnection network determines the speed of data accesses, thus this is a

UMA (Uniform Memory Access)            NUMA (Non-uniform Memory Access)

15. A transition system consists of
A set ? of configurations
A binary transition relation ⟶ on ?
A set I ⊆ ? of initial configurations.

  1. Define what a terminal configuration is.

  2. Define what an execution is.

16. Describe what a race condition is.

17. Lamport’s logical clock LC assigns to an event a the length k of a longest causality chain
?_1≺⋯≺?_?=? in the computation. To calculate the LC values for an event:
Let a be some event and k be the clock value of the event just before a at some process.
If a is the first event and it is an internal or send event, the LC(a) = 1
If a is an internal or send event, then LC(a) = k+1
If a is a receive event and b the send event corresponding to a, then LC(a) = max{ k, LC(b) } + 1

Consider three processes and the following sequence of events at processes p0, p1, p2:
p0 : a s1 s2 b
p1 : c r2 s3
p2 : r1 d r3 e

What are the Lamport’s logical clock values?

Solutions

Expert Solution

  • 1st answer is  NUMA(Non-uniform Memory Access)

The NUMA architecture defines the node as the Processing Element, with cache lines and a part of the main memory. Then, each node is connected to each other by the network. So, in the NUMA architecture we could say that the memory and the cache are distributed in the nodes, while in the UMA architecture is only the cache that is distributed.

  • A transition system consists of set C of configuration.

(a) A key use of terminals is to define start and end points of subnetwork traces. Terminals are also used to establish paths within a device feature for which a commodity travels through. To establish a terminal configuration.

(b)Execution is the process by which a computer or virtual machine executes the instructions of a computer program.In this case, the "commands" are simply program instructions, whose execution is chained together.

  • A race condition is an undesirable situation that occurs when a device or system attempts to perform two or more operations at the same time, but because of the nature of the device or system, the operations must be done in the proper sequence to be done correctly.
  • A logical clock is a mechanism for capturing chronological and causal relationships in a distributed system. The algorithm of Lamport timestamps is a simple algorithm used to determine the order of events in a distributed computer system.
  • According to the rule (4) of Lamport’s Algorithm, every process has a freedom to remove ANY-ONE request in the queue. Because of this randomness in the rules, P0 might end up waiting for the ACK of removed request from P1, whereas, P1 might also wait for the removed ACK from P0. This will make process to starve and leads to Deadlock.

we have defined the events and their order, we need to differentiate between the two events by assigning clock(LC) to every event. LC is nothing but a way of assigning a number to an event which increments between the two events. With the definition of events, if we say that event a happened before b, then a should have happened at an earlier time than b,

i.e . for any events a, b: if a → b, then LC(a) < LC(b)

Catch: is the converse true? It cannot be! Because if LC(a) < LC(b), there is also a possibility that a and b can be concurrent events of same process. To describe this clock to event relation more precisely, lamport designed a two conditions to be held between the two. they are:

C1: If a and b belongs to same process P and a → b, then LC(a) < LC(b).
C2: If a is a sending event of process Pi and b is the recipient event of process Pj, then LCi(a) < LCj(b).

Now, even though we can successfully log the events indexing with respective LC, we need a mechanism on how to increment LC. To do so, lamport discussed two implementation rules to be followed by every process in designing LC:

(IR1) Each process Pi increments LCi between any two successive events.
(IR2) (*) If event a is sending a message m by the process Pi with the timestamp Tm = LCi(a) . (*) On receiving a message m, Process Pj sets Cj greater than or equal to Cj and greater than Tm. i.e.

Initially, LC = 0; Send: LC++, Tm=LC; Receive: LC = max (LC, Tm)+1

IR1 and IR2 ensures that clock conditions are satisfied. So, they guarantee a correct system of logical clocks.

IR2 is ensured because receive LC will be set before the event message Tm is received. But, what if we set the receive LC after event message Tm is received? All you have to do is, Receive: LC = max(LC, Tm+1)

With the timestamp we can order the events they appear. But, what if two events amongst the process happen at a same time (LC)?To break such tie, Lamport defined a relation, “==>” as: if a is an event in process Pi and b is an event in process Pj , then a==> b if and only if either (i) LCi(a) < LCj(b) (ii) LCi(a) == LCj(b) and Pi < Pj. i.e. We break a tie using the process ids of the communicating process. This relation constitute for a total ordering of events using lamport’s logical clock.


Related Solutions

Circle the correct answer: Identify the level of depression, and circle the correct answer: 1. Linda...
Circle the correct answer: Identify the level of depression, and circle the correct answer: 1. Linda is a 22-year-old woman who has recently developed feelings of sadness and loss following a breakup with her boyfriend. She has noted no appetite or sleep changes. a. mild depression b. moderate depression c. severe depression d. she is feeling sorry for herself 2. Harold has become unable to concentrate or follow through with tasks. Lately even his appearance has begun to suffer. Today...
Circle the correct answer or write the correct answer in the space provided. 1. Quoting our...
Circle the correct answer or write the correct answer in the space provided. 1. Quoting our text book, “A fraction with a nonzero leftmost digit is said to be normalized.” For example, 10.0112 ´ 2-3 is normalized by shifting the binary point 2 places to the left and increasing the exponent by 2 yielding 0.100112 ´ 2-1. The mantissa, m, of every correctly normalized non-zero floating-point number, ± m ´ 2exponent, satisfies the relationship m Î A: [ 0.0,1.0 ]...
Directions: Circle the correct answer. The apex of the heart is the bottom / top of...
Directions: Circle the correct answer. The apex of the heart is the bottom / top of the heart. The endocardium is the innermost / outermost layer of the heart. At rest, the heart pumps 5000 ml / 500 ml of blood per minute. The pericardial sac normally holds 5 to 20 ml / 150 to 250ml of fluid. Heart valves are made up of endocardial / myocardial tissue covered by fibrous tissue. “Leaky”/ “stiff” heart valves cannot open correctly and...
For the following items, follow the directions, write the correct answer in the blank, or circle...
For the following items, follow the directions, write the correct answer in the blank, or circle the correct answer. Having applied for a job at the Commerce Department’s Bureau of Economic Analysis, you are given the following hypothetical data to study before your interview.  Figures are total value in billions of dollars. Household spending on:             Services                                                =          $3,008             Nondurable goods                                =          $1,776             Durable goods                                      =            $706 Business spending on plant and equipment        =             $815 Wear and tear on factory equipment                 =            $200 Inventory changes                                             =                $9 New homes constructed                                    =           $397 Existing homes which were...
Circle the correct answer : An article in the New York Times† reported that heart attack...
Circle the correct answer : An article in the New York Times† reported that heart attack risk could be reduced by taking aspirin. This conclusion was based on a designed experiment involving both a control group of individuals that took a placebo having the appearance of aspirin but known to be inert and a treatment group that took aspirin according to a specified regimen. Subjects were randomly assigned to the groups to protect against any biases and so that probability-based...
            Circle the correct answer of the following (True/False) Darcy’s velocity is a synonym to apparent...
            Circle the correct answer of the following (True/False) Darcy’s velocity is a synonym to apparent velocity (T/F) The hydraulic conductivity of a porous media is a function of both porous media and fluid properties (T/F) Intrinsic permeability is related to the second power of the pore radius (T/F) Dynamic viscosity of a fluid is a synonym to kinematic viscosity (T/F) Dynamic viscosity of a fluid is a synonym to absolute viscosity (T/F) Average linear pore velocity is large than...
Q2: Circle (i.e. put a circle around) the correct answer-option" 1-Assume an economist observes three interrelated...
Q2: Circle (i.e. put a circle around) the correct answer-option" 1-Assume an economist observes three interrelated variables: annual Income (1), skill/education level (D) and age (G) then, a-In static analysis, an economist could assume any functional relationships and proceed. b-in static analysis, an economist has to use a crutch"...the assumption of: Ceteris Paribus. 2-"Utility", the analytical concept, is used to interpret a consumer's joie de vie / contentedness when consuming a good/commodity or enjoying a service, therefore... a-A good's "Utility"...
Consider a memory system with a 14 bit long address. Produce the answer to each of...
Consider a memory system with a 14 bit long address. Produce the answer to each of the following parts using hexadecimal numbers. a. There is a 1.5k byte RAM device, starting at address $200. What is its last address? b. There is a 1k byte EPROM device, starting at address $900.What is is last address? c. There is a 7k byte ROM device, its last address is at the highest system address. What is its first address? d. Use your...
Circle the correct answer symbol 1. installment sales for 2018 is $600,000 and cost of goods...
Circle the correct answer symbol 1. installment sales for 2018 is $600,000 and cost of goods sold $300,000 while the installment sales in 2019 is $1,000,000 and cost of goods sold $800,000, cash collection from 2018 sales was $400,000 in 2018 and $200,000 in 2019, cash collection from 2019 sales was $500,000 in 2019 and $500,000 in 2020, using installment sales method compute gross profit rate for two years sales? a. 2018 is 50% and 2019 is 20%. b. 2018...
Write on the worksheet and show all your work Circle the correct answer BUAC – 20B...
Write on the worksheet and show all your work Circle the correct answer BUAC – 20B Managerial Accounting Extra Credit Worksheet – 7 points Information Part 1 Hanson Inc. has the following direct materials standard to manufacture one Zippy: 1.5 pounds per Zippy at $4.00 per pound Last week, 1,700 pounds of materials were purchased and used to make 1,000 Zippies. The materials cost a total of $6,630. How many pounds of materials should Hanson have used to make 1,000...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT