answersLogoWhite

0

A thread is similar to a separate process, in that it can do stuff (process) independently of other threads. But it is lightweight, since the operating system doesn't have to give it its own memory space, since it shares memory with the other threads in the process.

[Note: a thread or LWP shares the same instruction memory space as other threads of that process, but has its own datamemory space]

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering
Related Questions

What is a thread in c?

A thread is basically a lightweight process.


What single task process requests from the kernel?

A thread.


A single task such as the task of printing a file that process request from the kernel?

Thread


What is a self contained task within a process?

Thread


What is a self-contained well-defined task within a process?

Thread


Why LDAP is called lightweight?

LDAP, Lightweight Directory Access Protocol, is considered lightweight because it is a simpler protocol compared to its predecessor, DAP (Directory Access Protocol). LDAP is designed to be more efficient in terms of network bandwidth and system resources, making it suitable for directory services like user authentication and access control. The "lightweight" designation reflects its streamlined design and ease of implementation.


To use a needle and thread?

To use a needle and thread could be called sewing.To use a needle and thread could be called quilting. To use a needle and thread could be called embroidery. To use a needle and thread could be called suturing.


Can the subroutines of a high level language be called processes?

No. A subroutine (also known as a procedure or function) is best thought of as being a task. The executable (program) is the actual process. Every process has at least one thread of execution and each thread has its own local call stack. Thus multiple threads may concurrently execute the same task independently of any other threads within the same process. This is useful when we have a large or time-consuming task which can be broken down or divided up into smaller instances of the same task; each thread handles a small portion of the overall task and operates concurrently with all other instances of that task. Depending on how many CPU cores we have available, multiple threads of execution should complete the whole task quicker than a single thread would have. That is, if we divide the task into four, we could potentially complete the whole task in 1/4 of the time it would take with just one thread of execution.


What is thread holder?

the holder of a thread is called a spool


Describe a simple scheme in which there are as many lightweight processes as there are runnable threads?

Start with only a single LWP and let it select a runnable thread. When arunnable thread has been found, the LWP creates another LWP to look for anext thread to execute. If no runnable thread is found, the LWP destroys itself.


Process of thread making called?

The process of creating a thread is called "thread spinning." This involves passing fibers through a spinning machine to twist and bind them together to form a continuous strand of thread.


How do you measure major diameter of internal thread?

The major diameter is the diameter of the crest of the thread. Use a Vernier gage and mesure the diameter of the crest points of contact ( maximum external thread diameter). Unified National thread series defines the expected major diamter and tolerance. For internal threads ( nuts) the major diameter is the diameter of the roots of the thread.