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 are necessary conditions which can lead to a deadlock situation in a system?
What is the important aspect of a real-time system?
What is Executive in Windows NT?
Who is the father of os?
What is the Difference between Loading and Linking ?
What is the most used operating system?
What is a binary semaphore?
what is Processor?
How can I tell if a program is 64 bit?
Explain binary semaphore and its functionality.
How do I go to a specific line in vi?
What does the safe mode do?