Light-weight Process - Performance

Performance

LWPs are slower and more expensive to create than user threads. Whenever an LWP is created a system call must first be made to create a corresponding kernel thread, causing a switch to kernel mode. These mode switches would typically involve copying parameters between kernel and user space, also the kernel may need to have extra steps to verify the parameters to check for invalid behaviour. A context switch between LWPs means that the LWP that is being pre-empted has to save its registers, then go into kernel mode for the kernel thread to save its registers, and the LWP that is being scheduled must restore the kernel and user registers separately also.

For this reason, some user level thread libraries allow multiple user threads to be implemented on top of LWPs. User threads can be created, destroyed, synchronized and switched between entirely in user space without system calls and switches into kernel mode. This provides a significant performance improvement in thread creation time and context switches. However, there are difficulties in implementing a user level thread scheduler that works well together with the kernel.

Read more about this topic:  Light-weight Process

Other articles related to "performance":

Cyrix 6x86 - Performance
... Cyrix used a PR rating (Performance Rating) to relate their performance to the Intel P5 Pentium (pre-P55C), because a 6x86 at a lower clock rate outperformed the higher-clocked P5 ... was not an entirely truthful representation of the 6x86's performance ... While the 6x86's integer performance was significantly higher than P5 Pentium's, it's floating point performance was more mediocre—between 2 and 4 times ...
R. Kelly - Grammy Awards
... Can Fly" Record of the Year Nominated Song of the Year Nominated Best Male R B Vocal Performance Won Best R B Song Won Best Song Written for a Motion Picture, Television or Other Visual Media ... Best R B Album Nominated "Satisfy You" Best Rap Performance by a Duo or Group Nominated 2001 "I Wish" Best Male R B Vocal Performance Nominated 2003 "T ...
Rent (musical) - Productions - Original Broadway Production
... and innovative pricing, including same day-of-performance $20 tickets, helped to increase the popularity of musical theater amongst the younger generation ... ten Tony Awards in 1996 and won four Best Musical, Best Book, Best Original Score and Best Performance by a Featured Actor in a Musical (Heredia) On April 24, 2006, the original Broadway ... This performance raised over $2,000,000 for the Jonathan Larson Performing Arts Foundation, Friends In Deed and New York Theatre Workshop ...
35th Tony Awards - Winners and Nominees
... Moony Shapiro Songbook Mary Kyte – Tintypes Best Performance by a Leading Actor in a Play Best Performance by a Leading Actress in a Play Ian McKellen – Amadeus as Antonio ...

Famous quotes containing the word performance:

    Nobody can misunderstand a boy like his own mother.... Mothers at present can bring children into the world, but this performance is apt to mark the end of their capacities. They can’t even attend to the elementary animal requirements of their offspring. It is quite surprising how many children survive in spite of their mothers.
    Norman Douglas (1868–1952)

    The way to go to the circus, however, is with someone who has seen perhaps one theatrical performance before in his life and that in the High School hall.... The scales of sophistication are struck from your eyes and you see in the circus a gathering of men and women who are able to do things as a matter of course which you couldn’t do if your life depended on it.
    Robert Benchley (1889–1945)

    To vote is like the payment of a debt—a duty never to be neglected, if its performance is possible.
    Rutherford Birchard Hayes (1822–1893)