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

  • fuzzy logic

    - Fuzzy logic is an attempt to use more human-like reasoning and better reflect reality through employing"degrees of truth" rather than the usual "true or false" (1 or 0) Boolean logic on which the m... (WhatIs.com)

  • blue/green deployment

    - A blue/green deployment relies on identical sets of IT resources that trade off between an active production environment and inactive upgrade and testing environment. (searchITOperations.com)

  • platform

    - A computer platform is an underlying computer system on which application programs can run, or, in general, any base of technologies on which other technologies or processes are built. (SearchServerVirtualization.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.