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 factors determine whether a detection-algorithm must be utilized in a deadlock avoidance system?
What are starvation and aging?
What is the full form of "windows xp "
How long should a chkdsk r take?
What are the basic functions of file management in os?
What are your solution strategies for "Dining Philosophers Problem" ?
What is Marshalling?
Critical section is?
Explain translation lookaside buffer?
Explain the booting process of a windows xp system.
How do I get to the root directory?
What is a hard real time OS?