Light-weight process

In computer operating systems, 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.

See also

* Computer multitasking
* Thread (computer science)
* Process (computer science)
* Light Weight Kernel Threads

External links

* [http://moss.csc.ncsu.edu/~mueller/pthreads/threads-faq.html#5-5-Lightweight-process comp.programming.threads FAQ: Lightweight process]


Wikimedia Foundation. 2010.

Look at other dictionaries:

  • Light Weight Kernel Threads — or LWKT is a term from computer science in general and in DragonFlyBSD in particular. LWKTs differ from normal kernel threads in that they can preempt normal kernel threads. According to Matt Dillon, DragonFlyBSD creator: The LWKT scheduler is… …   Wikipedia

  • Light-Weight Documentation of Experiences — LIDs steht für Light Weight Documentation of Experiences und ist ein Modell zur systematischen Software Prozessverbesserung. Es wurde im Software Experience Center von DaimlerChrysler entwickelt. Bei diesem Ansatz werden die Erfahrungen der… …   Deutsch Wikipedia

  • Process (computing) — In computing, a process is an instance of a computer program that is being executed. It contains the program code and its current activity. Depending on the operating system (OS), a process may be made up of multiple threads of execution that… …   Wikipedia

  • light — light1 lightful, adj. lightfully, adv. /luyt/, n., adj., lighter, lightest, v., lighted or lit, lighting. n. 1. something that makes things visible or affords illumination: All colors depend on light. 2. Physics …   Universalium

  • Light Aircraft Association — The Light Aircraft Association (formerly known as the Popular Flying Association) is the representative body in the United Kingdom for amateur aircraft construction, recreational and sport flying. It oversees the construction and maintenance of… …   Wikipedia

  • M249 light machine gun — Machine Gun, 5.56 mm, M249 M249 Para Type Squad automatic weapon/Light machine gun Place of …   Wikipedia

  • Organic light-emitting diode — Demonstration of a flexible OLED device A green emitting OLED device An …   Wikipedia

  • Falling weight deflectometer — A falling weight deflectometer, FWD, is a testing device used by civil engineers to evaluate the physical properties of pavement. FWD data is primary used to estimate pavement structural capacity for 1) overlay design and 2) to determine if a… …   Wikipedia

  • Business Process Modeling Notation — The Business Process Modeling Notation (BPMN) is a standardized graphical notation for drawing business processes in a workflow. BPMN was developed by Business Process Management Initiative (BPMI), and is now being maintained by the Object… …   Wikipedia

  • Mixed martial arts weight classes — are weight classes that pertain to the sport of mixed martial arts. Organizations will often adopt their own rules for weight limits, causing ambiguity in the sport regarding how a weight class should be defined. For a variety of reasons (largely …   Wikipedia


Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”

We are using cookies for the best presentation of our site. Continuing to use this site, you agree with this.