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

  • Taco Bell programming

    - Taco Bell programming is an approach to software development that places value on consistently using the same development tools and languages when creating solutions for new problems. (WhatIs.com)

  • hypervisor

    - A hypervisor is a function which abstracts -- isolates -- operating systems and applications from the underlying computer hardware. (SearchServerVirtualization.com)

  • data type

    - A data type, in programming, is a classification that specifies which type of value a variable has and what type of mathematical, relational or logical operations can be applied to it without causi... (SearchSOA.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.