What is critical section?
Every process has a segment code called the critical section, in which the process may be updating tables, changing variables, writing file and etc. When one process is in critical section no further process is allowed to execute there. Every process must request permission to enter the CS and this section code is called the entry section. The CS is track by exit section and the remaining code is the remainder section.