Hang (computing)

Hang (computing)

:"This article is about the computer malfunction called hanging. For the capital punishment, see hanging"

In computing, a hang or freeze occurs when either a single computer program or the whole system becomes unresponsive to keyboard and mouse inputs. In a hang, the window affected or the whole computer screen becomes static, the latter case includes the mouse cursor. It is contrast with crash, where a program stops working and is not responding, or exits abnormally after encountering a problem. When no other input works, the power cycle must be restarted by an on/off or reset button.

Hangs are not limited to client personal computers with a graphical user interface, as in the example above. Servers can hang as well. In those cases, the server ceases to respond to requests. These sorts of hangs are typically addressed by a solution far more complex than an on/off or reset button.

Pre-emptive multitasking operating systems, such as Microsoft Windows 2000/XP/Vista, Apple Computer's Mac OS X and Linux hang less often as the multi-tasking system is not affected by non-terminating loops and further does not require tasks to yield control to the operating system. If atask does hang, the scheduler may switch to another group of interdependent tasks so that all processes will not hang. [Citation | inventor-last = D'Souza | inventor-first = David | publication-date = 1996-06-21 | issue-date = 2000-04-18 | title = Preemptive multi-tasking with cooperative groups of tasks | country-code = US | patent-number = 6052707]

Causes

Hardware can cause a computer to hang, either because it is intermittent or because it is mismatched with other hardware in the computer [cite press release | title = How to Troubleshoot Computer Hangs During Hardware Detection | publisher = Microsoft Help and Support | date = 2007-01-27 | url = http://support.microsoft.com/kb/262381 | accessdate = 2008-07-31] (this can occur when one makes an upgrade). Hardware can also become defective over time due to dirt or heat damage.

A hang can also occur due to the fact that the programmer has incorrect termination conditions for a loop, or, in a co-operative multitasking operating system, forgetting to yield to other tasks. Said differently, many software-related hangs are caused by threads waiting for an event to occur which will never occur. [cite newsgroup | title = Here's an infinite loop that will hang your machine | author = Calvin Hsia | date = 2006-11-16 | newsgroup = blogs.msdn.com | url = http://www.feedsfarm.com/article/8738c4141d9874d6e05f6a3e57369280014c7081.html | accessdate = 2008-07-31] This is also known as an infinite loop.

A computer may seem to hang when in fact it is simply processing very slowly. This can be caused by too many programs running at once, not enough memory (RAM), or memory fragmentation. It can also be caused by hidden programs which were installed surreptitiously, also known as Spyware.

Solutions

Usually, in systems with a modern operating system, the user is able to terminate the programs running (for instance, with the kill command, or through the "end task" button on the task list in recent versions of Microsoft Windows), and, if they wish, restart it in the hope that the anomalous condition that caused the hang does not recur. Older systems, such as those using MS-DOS or Microsoft Windows 3.1, often needed to be completely restarted in the event of a hang.

A watchdog timer can reboot the computer in events of a hang

References

See also

* Abort (computing)
* Anomaly in software
* Blue screen of death
* Crash (computing)
* Deadlock
* Livelock
* Infinite loop
* Uninterruptible sleep


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Hang — The word hang or hanging can mean: *As in: hang on a second also and similar = wait a second *Hanging, a form of capital punishment. *Hang (musical instrument), a metallic drum. * Hang , a song by Avail from their 1996 album 4am Friday *hang… …   Wikipedia

  • hang — verb (past and past participle hung except in sense 2) 1》 suspend or be suspended from above with the lower part not attached.     ↘attach or be attached so as to allow free movement about the point of attachment.     ↘attach (meat or game) to a… …   English new terms dictionary

  • hang time — UK / US noun [uncountable] computing the time between when a computer stops operating, preventing someone from working, and when it starts again, allowing them to continue working …   English 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

  • Bishop Stopford's Maths and Computing School — Infobox Secondary school name = Bishop Stopford s Maths Computing School native name = motto = animus noster dei gloria established = 1967 type = Voluntary aided [ [http://www.bishopstopfords.enfield.sch.uk/i governors.php School web sit:… …   Wikipedia

  • Crash (computing) — A public payphone that has experienced a fatal error causing a crash and is displaying the Blue Screen of Death. A crash (or system crash) in computing is a condition where a computer or a program, either an application or part of the operating… …   Wikipedia

  • Reset (computing) — In a computer or data transmission system, to reset means to clear any pending errors or events and bring a system to normal condition or initial state usually in a controlled manner. It is usually done in response to an error condition when it… …   Wikipedia

  • Entropy (computing) — In computing, entropy is the randomness collected by an operating system or application for use in cryptography or other uses that require random data. This randomness is often collected from hardware sources, either pre existing ones such as… …   Wikipedia

  • Abort (computing) — In a computer or data transmission system, to abort means to , usually in a controlled manner, a processing activity because it is impossible or undesirable for the activity to proceed. Such an action may be accompanied by information on the… …   Wikipedia

  • Fencing (computing) — Fencing is isolating a node of a computer cluster when it is malfunctioning. Isolating a node means ensuring that I/O can no longer be done from it. Fencing is typically done automatically, by cluster infrastructure such as shared disk file… …   Wikipedia

Share the article and excerpts

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