What is Critical section?

Answer Posted / zahid

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.

Is This Answer Correct ?    32 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you kill a process?

773


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

674


Explain the different kinds of threads?

761


Explain what are threads?

770


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

658






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?

774


Explain similarities between thread and process?

731


Explain critical section?

776


What is protection boundary?

822


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

659


Explain what are the main families of threads?

720


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

780


List the system calls used for process management?

782


What is the working set of a process?

733


Explain what is critical section?

718