Heavyweight Thread

What Does Heavyweight Thread Mean?

In IT, a heavyweight thread is a thread that has a sophisticated context and requires the processor to do more work to order its execution. The general definition of a thread in IT is a single process that is isolated in code, where some programs can have multiple threads, for example, to accommodate multiple users, or to separate definitions of multiple tasks.


Techopedia Explains Heavyweight Thread

Processors handle multiple threads in order to prioritize executions. A single thread will be a part of a program execution that a processor can handle individually. With that in mind, some experts classify threads as either lightweight or heavyweight depending on their context. A lightweight thread would be a thread that does not require a lot of "changes" to the system in order to implement its execution. By contrast, a heavyweight thread execution may require switching to a different set of contextual resources, or dealing with differently allocated memory space, that can require more time for switching. One example of a heavyweight thread is the average UNIX process, where processors may need to access more resources, and switch time may be greater, than with some other kinds of threads in different operating system environments. Threads or processes with their own virtual memory may be considered heavyweight threads, as well as those which may involve certain restrictions on access. It’s important to note that the terms ‘lightweight thread’ and ‘heavyweight thread’ are subjective, and that generally, programmers and others define them on a case by case basis.


Related Terms

Latest API Management Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…