There is some data related to temperatures of different cities. One side(thread), will be updating the values and multiple clients will be reading the values. how do you achieve synchronization?
Answer / mskumar
My Answer was:-
Thread updating the data:- Should acquire the MUTEX lock and update the data & release the MUTEX.
While threads try to read the Data :- Should acquire the lock such that only read access allowed during the lock, not the write lock so that any no.of clients trying to read can read at the same time.
Can some give me thier thoughts if any?
| Is This Answer Correct ? | 1 Yes | 1 No |
What is a sector?
Is gnome a shell?
How long does chkdsk take to run?
Can you tell what a device is by mac address?
Do I need program files and program files x86?
What is a real-time system?
7 Answers SureSoft, Verifone, Wipro,
Can bad sectors cause blue screen?
Can you please explain the difference between load-time dynamic linking and run-time dynamic linking?
What advantage is there in having different time-quantum sizes on different levels of a multilevel queuing system?
Please describe what is the PCB, and give some sample fields?
What is a 32 bit integer?
Can a 64 bit run a 32bit program?