Daniel Posthuma

Powered by 🌱Roam Garden

thread

This is an "Orphan" page. Its core content has not been shared: what you see below is a loose collection of pages and page snippets that mention this page, as well as snippets of this page that were quoted elsewhere.

Referenced in

C++

A thread represents a concurrent execution unit within a process. Threads are characterized as light-weight processes (LWP). These are significantly easier to create and destroy. In many systems the creation of a thread is up to 100 times faster than the creation of a process. This is especially advantageous in situations when the need for concurrent operations changes dynamically.

C++

A major difference between a process and a thread is that each process has its own address space, while a thread does not require a new address space to be created.

C++

One such path is called a thread and using several threads is called multi-threading

C++

Runnable: In this state, a thread might actually be running or it might be ready to run at any instant of time. It is the responsibility of the thread scheduler to assign CPU time to the thread.

C++

Blocked: A thread might be in this state, when it is waiting for I/O operations to complete. When blocked, a thread cannot continue its execution any further until it is moved to the runnable state again. It will not consume any CPU time in this state. The thread scheduler is responsible for reactivating the thread.

C++

New: A thread is in this state once it has been created. Until it is actually running, it will not take any CPU resources.