Middleweight Thread

Definition - What does Middleweight Thread mean?

A middleweight thread is an instance of a sequence of code that works as a unit. This is normally done on behalf of a single user, transaction or message in a computer program. Threads are sometimes described by weight, which refers to the amount of contextual information that must be saved by the thread in order to make it useful to the system as a reference.

Techopedia explains Middleweight Thread

Modern OS kernels are considered middleweight threads because multiple threads can exist in a single address space. This reduces the amount of context that needs to be saved for each one, significantly decreasing the switching time. In contrast, a Unix process is considered a heavyweight thread. Most user-level threads are considered lightweight threads.

A thread and a task are very similar and are often confused. The OS considers a running program a task, giving each task a turn at performing an operation. If a program requests that a file be saved, the OS creates a thread. Most of today’s operating systems support multitasking and multithreading to provide efficient application processing.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.