Heavyweight Thread

Why Trust Techopedia

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.

Advertisements

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.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.