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

How do I force a program to close?

0 Answers  


What is turnaround time?

0 Answers  


What is INODE?

1 Answers   Infosys,


Which is the best operating system in the world?

0 Answers  


What is the maximum ram for a 64 bit operating system?

0 Answers  






Explain pcb.

0 Answers  


What is the purpose of an I/O status information?

0 Answers  


What is option in grep?

0 Answers  


What is operating system in short answer?

0 Answers  


Explain about assembler and the functions executed by them?

0 Answers  


When is a system in a safe state?

0 Answers  


What are the impact on network when gc,schema master,domainnaming master,rid master,pdc emulator,infrastructure master is down?

1 Answers   HCL,


Categories