JargonFile/original/html/T/trap.html
2014-03-27 18:54:56 +00:00

15 lines
2.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>trap</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../T.html" title="T"/><link rel="previous" href="trampoline.html" title="trampoline"/><link rel="next" href="trap-door.html" title="trap door"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">trap</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="trampoline.html">Prev</a> </td><th width="60%" align="center">T</th><td width="20%" align="right"> <a accesskey="n" href="trap-door.html">Next</a></td></tr></table><hr/></div><dt><a id="trap"/><dt xmlns="" id="trap"><b>trap</b></dt></dt><dd><p> 1. <span class="grammar">n.</span> A program interrupt,
usually an interrupt caused by some exceptional situation in the user
program. In most cases, the OS performs some action, then returns control
to the program.</p></dd><dd><p> 2. <span class="grammar">vi.</span> To cause a trap.
&#8220;<span class="quote">These instructions trap to the monitor.</span>&#8221; Also used
transitively to indicate the cause of the trap. &#8220;<span class="quote">The monitor traps
all input/output instructions.</span>&#8221;</p></dd><dd><p>This term is associated with assembler programming (<span class="firstterm">interrupt</span> or <span class="firstterm">exception</span> is more common among
<a href="../H/HLL.html"><i class="glossterm">HLL</i></a> programmers) and appears to be fading into
history among programmers as the role of assembler continues to shrink.
However, it is still important to computer architects and systems hackers
(see <a href="../S/system.html"><i class="glossterm">system</i></a>, sense 1), who use it to distinguish
deterministically repeatable exceptions from timing-dependent ones (such as
I/O interrupts).</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="trampoline.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../T.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="trap-door.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">trampoline </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> trap door</td></tr></table></div></body></html>