Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A thread is the execution of a piece of code inside a process. Multiple threads can execute simultaneously inside a process. They are put, altogether, inside an execution priority queue by the operating system, then are run by small groups on the cores of the processor. See Figure 1.

Program vs Process vs Thread

Figure 1:Thread execution (from Wikipedia)

Threads:

With threading we can design applications that use:

In concurrent programming:

In parallel programming: