What is critical section routine? - Definition from WhatIs.com

Definition

critical section routine

Part of the Programming glossary:

In computers, a critical section routine is an approach to the problem of two or more programs competing for the same resource at the same time. Imagine that two programs want to increment a counter. If both do it at the same time: fetch the operand , increment it, and store back the incremented value, then one of the increments will be lost. On today's processors, the programs can use an atomic read-modify-write instruction, such as fetch-and-op, compare-and-swap, or exchange. On early processors, these instructions did not exist; the problem was to accomplish the incrementing atomically, using only ordinary assembler instructions. The problem was defined and first solved by Edsgar Dijkstra. "Critical section routine" was his name for the code that solved the problem.

This was last updated in April 2005
Posted by: Margaret Rouse

Related Terms

Definitions

  • MATLAB

    - MATLAB is a fourth-generation programming language and numerical analysis environment used for matrix calculations, developing and running algorithms, creating user interfaces (UI) and data visuali... (WhatIs.com)

  • race condition

    - A race condition occurs when a device or system makes an attempt to perform two or more operations at the same time, but not in the proper sequence. (SearchStorage.com)

  • MapReduce

    - MapReduce is a software framework that allows developers to write programs that process massive amounts of unstructured data in parallel across a distributed cluster of processors or stand-alone co... (searchCloudComputing.com)

Glossaries

  • Programming

    - Terms related to software programming, including definitions about programming languages and words and phrases about software design, coding, testing and debugging.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question About critical section routinePowered by ITKnowledgeExchange.com

Get answers from your peers on your most technical challenges

Tech TalkComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.