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

What is external fragmentation?

0 Answers  


Explain briefly about assembler and its functioning?

0 Answers  


State the differences between ddr1, 2 and 3.

0 Answers  


Differentiate between RAM and ROM?

25 Answers   CTS, Doli Systems, HK, IBM, Infosys, Wipro,


Will increasing ram speed up my laptop?

0 Answers  






Does 64 bit require uefi bios?

0 Answers  


What is difference between Process and Thread?

0 Answers  


What is throughput?

0 Answers  


How do I copy and paste a file location?

0 Answers  


Is 64bit better than 32bit?

0 Answers  


What is run level 1?

0 Answers  


File which stores the DNS configuration at client side?

0 Answers  


Categories