Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a root program?

1001


What is the difference between 32 bit and 64 bit os?

928


What is real time operating systems?

998


Explain a system in safe state?

993


How do I enable macros?

942


Why do we need threads?

993


What is the operating system?

1025


Which os is best for coding?

909


What is the kernel of the operating system?

910


Explain the meaning of kernal.

1012


What are the 7 layers of networking?

970


Why is 64 bit better?

934


What are numerous ways in which a thread can enter the waiting state?

953


Page replacement algorithm in Operating System?

1042


How much does a pc cost?

976