Trap (computing)

Trap (computing)

In computing and operating systems, a trap, also known as an exception or a fault, is typically[NB 1][1] a type of synchronous interrupt typically caused by an exceptional condition (e.g., breakpoint, division by zero, invalid memory access). A trap usually results in a switch to kernel mode, wherein the operating system performs some action before returning control to the originating process. A trap in a system process is more serious than a trap in a user process, and in some systems is fatal. In some usages, the term trap refers specifically to an interrupt intended to initiate a context switch to a monitor program or debugger.[2]

In SNMP, a trap is a type of PDU used to report an alert or other asynchronous event about a managed subsystem.

See also

Notes

  1. ^ There is a wide variation in the nomenclature. On some computers the term trap refers to any interrupt, on some machines to any synchronous interrupt, on some machines to any interrupt not associated with input/output, on some machines only to interrupts caused by instructions with trap in their names, etc.

References

  1. ^ Hyde, Randall (1996), "CHAPTER SEVENTEEN: INTERRUPTS TRAPS AND EXECPTIONS (Part 1)", The Art Of Assembly Language Programming, http://www.oopweb.com/Assembly/Documents/ArtOfAssembly/Volume/Chapter_17/CH17-1.html, "The concept of an interrupt is something that has expanded in scope over the years. The 80x86 family has only added to the confusion surrounding interrupts by introducing the int (software interrupt) instruction. Indeed different manufacturers have used terms like exceptions faults aborts traps and interrupts to describe the phenomena this chapter discusses. Unfortunately there is no clear consensus as to the exact meaning of these terms. Different authors adopt different terms to their own use. While it is tempting to avoid the use of such misused terms altogether for the purpose of discussion it would be nice to have a set of well defined terms we can use in this chapter. Therefore we will pick three of the terms above interrupts traps and exceptions and define them. This chapter attempts to use the most common meanings for these terms but don't be surprised to find other texts using them in different contexts." 
  2. ^ "The Jargon File, version 4.4.7". 2003-10-27. http://catb.org/esr/jargon/html/T/trap.html. Retrieved 2007-02-03. 

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Trap — A trap is a device or tactic intended to harm, capture, detect, or inconvenience a human or animal intruder, or animal pest or game. Traps may be physical objects, such as cages or snares, or metaphorical concepts. Physical trapsExamples of… …   Wikipedia

  • TRAP — Targeted Regulation Of Abortion Providers (Community » Law) *** Telephone Record And Playback (Computing » Networking) ** Tactical Related APplications (Governmental » Military) * Tartrate Resistent Acid Phosphatase (Academic & Science »… …   Abbreviations dictionary

  • Category:Computing terminology — From Technical terminology: Technical terminology is the specialized vocabulary of a field. These terms have specific definitions within the field, which is not necessarily the same as their meaning in common use. Jargon is similar, but more… …   Wikipedia

  • Timeline of quantum computing — Timeline of quantum computers1970s* 1970 Stephen Wiesner invents conjugate coding.* 1973 Alexander Holevo publishes a paper showing that n qubits cannot carry more than n classical bits of information (a result known as Holevo s theorem or Holevo …   Wikipedia

  • Process management (computing) — Operating systems …   Wikipedia

  • Cloud computing — Les principaux acteurs du cloud computing Le cloud computing[1], informatique en nuage ou infonuagique est un concept qui consiste à déporter sur des serveurs distants des traitements informatiques traditionnellement localisés sur des serveurs lo …   Wikipédia en Français

  • Cloud Computing — Informatique dans le nuage Le nuage (cloud) est le symbole de l Internet dans le monde informatique. L informatique dans le nuage[1] (en anglais, cloud computing[ …   Wikipédia en Français

  • Kernel (computing) — A kernel connects the application software to the hardware of a computer In computing, the kernel is the main component of most computer operating systems; it is a bridge between applications and the actual data processing done at the hardware… …   Wikipedia

  • Crystal Computing — / Design Design Industry Computer and video games Founded 1982 Headquarters Manchester, England Products Halls of the Things Invasion of the Body Snatchas! Crystal Computing, later renamed Design Design, was a …   Wikipedia

  • Honeypot (computing) — In computer terminology, a honeypot is a trap set to detect, deflect, or in some manner counteract attempts at unauthorized use of information systems. Generally it consists of a computer, data, or a network site that appears to be part of a… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”