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?



There is some data related to temperatures of different cities. One side(thread), will be updating t..

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

Post New Answer

More Operating Systems General Concepts Interview Questions

Who does the memory management in operating system?

0 Answers  


What do you know about a pipe? When is it used?

0 Answers  


What are the three types of operating systems?

0 Answers  


Is 8gb ram good?

0 Answers  


What is Semaphore?

3 Answers  






Explain the command rate in reference to ram?

0 Answers  


What is a cache memory?

0 Answers   TCS,


What isthe difference between a 'thread' and a 'process'?

2 Answers   HP,


What are starvation and aging?

0 Answers  


Is x86 better than x64?

0 Answers  


What is a job queue?

0 Answers  


What is the x86 folder?

0 Answers  


Categories