GET /employee/431434 HOST: www.examplefirm.org Accept: application/json i. Explain how NTP is used to estimate the clock
Posted: Fri May 20, 2022 2:29 pm
www.examplefirm.org Accept: application/json i. Explain how NTP is used to estimate the clock offset between the client and the server. State any assumptions that are needed in this estimation. [8 marks] ii. How does the amount of the estimated offset affect the adjustment of the client's clock? [6 marks) iii. A negative value is returned by elapsedTime when using this code to measure how long some code takes to execute: long startTime = System.currentTimeMillis(); 11 ... the code being measured long elapsedTime = System.currentTimeMillis() - startTime; Explain why this happens and propose a solution. [6 marks] (f) Consider a group of distributed processes P1, P2, P3 and P4, where P4 is the current leader. If P4 is crashed and not responding, then how many messages to execute does it take to elect a new leader using the Ring algorithm? Briefly explain your answer. [6 marks)
GET /employee/431434 HOST: