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

βˆ™ 2008-05-12 01:05:44
This answer is:
User Avatar
Study guides

What Microsoft OS is an upgrade of Windows 2000

Which file system is used by floppy disks

What is the purpose of the boot camp software on a mac

Which operating system was developed by Microsoft using core components of OS2 and was meant to replace OS2

See all cards
42 Reviews

Add your answer:

Earn +20 pts
Q: What is the difference between LWP and threads?
Write your answer...
Still have questions?
magnify glass
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.

Is there any difference between pipe threads PT and national pipe threads NPT?

No n

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 difference process based and thread based multitasking?

-> Difference between process based and thread based multitasking: 1) threads share the same address space where as process doesn't. 2) context switching between threads is usually less expensive than between processes. 3) cost of communication between threads is relatively low.

What is the difference between an i7 core and a i5 core chip?

i7 has 4 cores 8 threads, i5 has 4 cores 4 threads

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.

People also asked