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...

What is Critical section?

Answer Posted / guest

A critical section of code is one in which data that may be
accessed by other threads are inconsistent. At a higher
level, a critical section can be viewed as a section of
code in which a guarantee you make to other threads about
the state of some data may not be true.
If other threads can access these data during a critical
section, your program may not behave correctly. This may
cause it to crash, lock up, produce incorrect results, or
do just about any other unpleasant thing you care to
imagine.

Other threads are generally denied access to inconsistent
data during a critical section (usually through use of
locks). If some of your critical sections are too long,
however, it may result in your code performing poorly

Is This Answer Correct ?    53 Yes 45 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the architectural differences between user-space threads, and kernel-supported threads?

981


Explain what are the main families of threads?

1083


If your server is running on Unix and one of the sessions are keep on running without loading any data. how would you kill it?

1103


Explain what is protection boundary?

1049


List the system calls used for process management?

1093


How would you kill a process?

1030


Explain the performance differences between user-space threads and kernel-supported threads.?

1243


Explain similarities between thread and process?

986


Explain what is critical section?

972


Tell me when should we use thread-safe "_r" library calls?

891


Explain the different kinds of threads?

1044


What is protection boundary?

1069


Explain critical section?

1062


explain about the initial process sequence while the system boots up?

1053


Explain what is scheduling?

1057