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 |
Can a 64 bit computer run 32 bit programs?
How do you check if your computer is 32 or 64 bit?
What are the ways in which fault tolerance can be ensured in systems? (Different redundancy techniques)?
Can x86 run 64 bit?
What is meant by arm-stickiness?
Hello this is gaurav garg I have completed BCA. plz TEll me how will ask question in interview.
How do I go to a specific line in vi?
What is a safe state and a safe sequence?
How much ram can a 64 bit os use?
What is virtual memory, if OS didt have that concept What are the problems can arise?
How do you assign priority to a worker thread?
State the advantages of segmented paging over pure segmentation?