answersLogoWhite

0


Best Answer

This explains the difference between LWP-Process-Thread:

A light-weight process (LWP) is a means of achieving multitasking. In contrast to a regular (full-blown) process, an LWP shares all (or most of) its logical address space and system resources with other process(es); in contrast to a thread, a light-weight process has its own private process identifier and parenthood relationships with other processes. Moreover, while a thread can either be managed at the application level or by the kernel, an LWP is always managed by the kernel and it is scheduled as a regular process. One significant example of a kernel that supports LWPs is the Linux kernel. On most systems, a light-weight process also differs from a full-blown process, in that it only consists of the bare minimum execution context and accounting information that is needed by the scheduler, hence the term light-weight. Generally, a process refers to an instance of a program, while an LWP represents a thread of execution of a program (indeed, LWPs can be conveniently used to implement threads, if the underlying kernel does not directly support them). Since a thread of execution does not need as much state information as a process, a light-weight process does not carry such information. As a consequence of the fact that LWPs share most of their resources with other LWPs, they are unsuitable for certain applications, where multiple full-blown processes are needed, e.g. to avoid memory leaks (a process can be replaced by another one) or to achieve privilege separation (processes can run under other credentials and have other permissions). Using multiple processes also allows the application to more easily survive if a process of the pool crashes or is exploited.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between LWP and threads?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


Whats the difference between plumbing pipe threads and conduit pipe threads?

Plumbing pipe threads are squared and conduit pipe threads are tapered.


What is the difference between pipe threads and electrical conduit pipe threads?

Water pipe threads are tapered, electrical pipe is not tapered.


What is the difference between single and double screw threads?

screw thread are single threads which means they are not double


What is the difference between rigid electrical pipe and plumbing pipe?

The threads


What is the difference between capillitial threads and a columella?

Capillitial threads are very minute forms of slime mold. A columella has numerous threads radiating from all sections of the cell.


What is the difference between pipe threads and bolt threads?

NPT = pipe Briggs standard = Pipe NFT and NFC and ASAE = bolt


What is the difference between a fleece and a cagoule?

A cagoule is more puffy and has threads usually hanging out


What is the difference between a rethreading kit and tap and die kit?

A rethread kit cleans up damaged existing threads. A tap and die kit makes threads from scratch.


What is the difference between process and thread?

Basically no difference, except that process can use many threads; thread can use only one.


What is the difference between plumbing MIP and FIP?

MIP ==> Male Iron Pipe thread (i.e. threads on outside of fitting) FIP ==> Female Iron Pipe thread (i.e. threads on inside of fitting)


What is the difference between a 12mm x 1.25 and a 12mm x 1.5 auto nut?

The thread pitch is different. One is 1.25 threads per mm, and the other is 1.5 threads per mm.