Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

… Searc

Thread (computing)

… … …
This article is about the concurrency concept. For the
multithreading in hardware, see Multithreading
(computer architecture). For the form of code
consisting entirely of subroutine calls, see Threaded
code. For other uses, see Thread (disambiguation).

This article includes a list of references, but its


sources remain unclear because it has Learn
insufficient
more
inline citations.

A process with two threads of


execution, running on one processor

In computer science, a thread of execution is


the smallest sequence of programmed
instructions that can be managed
independently by a scheduler, which is
typically a part of the operating system.[1] The
implementation of threads and processes
differs between operating systems, but in most
cases a thread is a component of a process.
Multiple threads can exist within one process,
executing concurrently and sharing resources
such as memory, while different processes do
not share these resources. In particular, the
threads of a process share its executable code
and the values of its dynamically allocated
variables and non-thread-local global variables
at any given time.

Single vs multiprocessor
systems

History

Threads vs. processes

Single threading

Multithreading

Scheduling

Processes, kernel threads,


user threads, and fibers

Models

Programming language
support

Practical multithreading

See also

Notes

References

Further reading

External links

Last edited 7 days ago by MrOllie

Content is available under CC BY-SA 3.0 unless


otherwise noted.

Terms of Use • Privacy policy • Desktop

You might also like