Files
JargonFile/original/html/B/busy-wait.html

14 lines
2.5 KiB
HTML
Raw Normal View History

2014-03-27 18:54:56 +00:00
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>busy-wait</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="../B.html" title="B"/><link rel="previous" href="burst-page.html" title="burst page"/><link rel="next" href="buzz.html" title="buzz"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">busy-wait</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="burst-page.html">Prev</a><EFBFBD></td><th width="60%" align="center">B</th><td width="20%" align="right"><EFBFBD><a accesskey="n" href="buzz.html">Next</a></td></tr></table><hr/></div><dt><a id="busy-wait"/><dt xmlns="" id="busy-wait"><b>busy-wait</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">vi.</span></dt></dt><dd><p> Used of human behavior, conveys that the subject is busy waiting for
someone or something, intends to move instantly as soon as it shows up, and
thus cannot do anything else at the moment. &#8220;<span class="quote">Can't talk now, I'm
busy-waiting till Bill gets off the phone.</span>&#8221;</p><p>Technically, <span class="firstterm">busy-wait</span> means to
wait on an event by <a href="../S/spin.html"><i class="glossterm">spin</i></a>ning through a tight or
timed-delay loop that polls for the event on each pass, as opposed to
setting up an interrupt handler and continuing execution on another part of
the task. In applications this is a wasteful technique, and best avoided
on timesharing systems where a busy-waiting program may
<a href="../H/hog.html"><i class="glossterm">hog</i></a> the processor. However, it is often unavoidable
in kernel programming. In the Linux world, kernel busy-waits are usually
referred to as <span class="firstterm">spinlocks</span>.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="burst-page.html">Prev</a><EFBFBD></td><td width="20%" align="center"><a accesskey="u" href="../B.html">Up</a></td><td width="40%" align="right"><EFBFBD><a accesskey="n" href="buzz.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">burst page<67></td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"><EFBFBD>buzz</td></tr></table></div></body></html>