lightweight, middleweight, and heavyweight threads

Part of the TechTarget Network of Enterprise IT Web Sites

Search our IT-specific encyclopedia for:
 
Browse alphabetically:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
All Categories Programming

lightweight, middleweight, and heavyweight threads

In computer programming, a thread is an instance of a sequence of code that is operating as a unit, typically on behalf of a single user, transaction, or message. Threads are sometimes described in terms of their weight, meaning how much contextual information must be saved for a given thread so that it can be referred to by the system during the life of the thread.

For example, the context of a UNIX process includes the hardware register , the kernel stack , user-level stack, and so on. The time required to switch that much context, in thousands of microseconds, is considered large, so a UNIX process is said to be a heavyweight thread.

In some modern operating system kernels, such as Mach , multiple threads can exist in a single address space , which decreases the amount of context that must be saved with each one, and reduces the switching time to hundreds of microseconds. These kernel-level threads are considered to be middleweight threads.

When all context and thread operations are exposed at the user level, each application needs only the minimal amount of context saved with it, so that context switching can be reduced to tens of microseconds. Therefore, user-level threads are considered lightweight threads.







Last updated on: Sep 08, 2005

>  Enterprise Software related Research & News
>  White Papers for the Retail Industry

Are you a Know-IT-All?
What technology is solid-state lighting based on?
Answer

word of the day Sign up for the Word of the Day
twitter Follow us on Twitter


WORD OF THE DAY...
above the fold
LEARN MORE ABOUT...
Mobile Web design and testing
wear leveling
write amplification
write endurance
decision management
business process governance
Profile-Driven Storage
Resilient File System (ReFS)
Security, Trust and Assurance Registry (STAR)
Windows Server 8
community cloud
managed storage
facial recognition
Shared serial-attached SCSI (SAS)
open compute project
BIOS password
dynamic BPM (business process management)
social BPM (business process management)
in-circuit emulator (ICE)
above the fold
logic simulator
photometric stereo
dynamic case management (DCM)
raw device mapping (RDM)
WhatIs.com RSS Feeds
About Us   |   Contact Us   |   For Advertisers   |   For Business Partners   |   Reprints   |   RSS   |   Awards
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints




All Rights Reserved, Copyright 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts