What is Critical section?

Answer Posted / mufti usmaan system analyst

In concurrent programming a critical section is a piece of
code that accesses a shared resource (data structure or
device) that must not be concurrently accessed by more than
one thread of execution. A critical section will usually
terminate in fixed time, and a thread, task or process will
have to wait a fixed time to enter it (aka bounded waiting).
Some synchronization mechanism is required at the entry and
exit of the critical section to ensure exclusive use, for
example a semaphore

Is This Answer Correct ?    21 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is protection boundary?

654


How would you kill a process?

713


What is the working set of a process?

668


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

592


Explain how to work unix commands on windows xp without installing unix o/s in pc?

574






Explain what are threads?

709


What is the window of the working set of a process?

704


Explain critical section?

687


Explain the different kinds of threads?

693


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

692


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?

701


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

591


Explain what is scheduling?

705


Explain what is critical section?

630


How to work unix commands on windows xp without installing unix o/s in pc?

596