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 |
While running DOS on a PC, which command would be used to duplicate the entire diskette?
What is starvation os?
Paging a memory management function, while multiprogramming a processor management function are the two independent?
Can I change operating systems on my laptop?
What is dual-mode operation?
How does reference counting manage memory allocated objects?
How does a memory leak work?
What's the difference between semaphore , critical sections and mutex?
Explain the difference between trap and trapdoor?
Can bad sectors cause blue screen?
What is the Difference Between SystemCalls & Interpreter
Differentiate between RAM and ROM?
25 Answers CTS, Doli Systems, HK, IBM, Infosys, Wipro,