Jump to content

Thread (computing)

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Lee Daniel Crocker (talk | contribs) at 12:34, 21 March 2002. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Many programming languages, operating systems, and other software development environments support what are called "threads", or "lightweight" threads of execution. This allows a program to split itself into two or more simultaneously running tasks.

Threads are distinguished from traditional multi-tasking processes in that processes are typically independent, carry considerable state information, are managed by the operating system, and interact only through system-provided inter-process communication mechanisms. Multiple threads, on the other hand, typically share the state information of a single process, share memory and other resources directly, and are not managed by the operating system (though some later operating systems may have special facilities for them).

The Java programming language, for example, is designed to facilitate multi-threaded programs.