Computer Programming Software Terms, Glossary and Dictionary
In computer programming a critical section is a piece of code or a set of instructions that can only be executed by one process or thread at a time. If the instructions are interrupted, a race condition might occur. It will usually terminate in fixed time, and a process will only have to wait a fixed time to enter it. Some synchronisation mechanism is required at the entry and exit of the critical section to ensure exclusive use.