Thread Models Term Paper

PAGES
4
WORDS
1103
Cite

¶ … Mx1, 1x1 and MxN, each having its own advantages and disadvantages. Although Mx1 is commonly acknowledge as an inferior model, there's plenty of debate about the merits of 1x1 versus MxN. Lately, the trend has been for several operating systems such as Solaris and Linux to move from a MxN model to the 1x1 model. This paper compares the pros and cons of each thread model and explores reasons behind the transition from the more scalable MxN to the simpler 1x1 model. A thread is an independent flow of control within a process, composed of a context (a register set and a program counter) and a sequence of instructions that can execute independently of other sequences of instructions (Threads and the Java virtual machine). At application startup, all data is initialized. Each thread can access this global data and all user code as well as its own private storage, attributes and stack. Sequences that are independent of each other can be completed simultaneously as opposed to waiting for each sequence of the process to complete. Reducing the wait cycles for independent steps to complete in parallel maximizes the throughput of the application.

There are three types of thread models (Thread models). One model is called user threads or many to one (Mx1) threads. In this model, all program threads share the same process thread. The thread application programming interfaces enforce the scheduling policy and decide when a new thread runs. The scheduling policy allows only one thread to be actively running in the process at a time. And, the operating system kernel is only aware of a single thread of control (task) in the process.

A second thread model is called kernel threads...

...

These threads are separate tasks associated with a process. The kernel thread model uses a pre-emptive scheduling policy in which the operating system decides which thread is eligible to share the processor. In an 1x1 thread model, there is a one-to-one mapping between program threads and process threads.
Some platforms support a combination of the Mx1 and 1x1 thread models (Thread models). This model is called a many to many (MxN) thread model and is a more complex implementation of kernel threads than the 1x1 model. Each process that has M. user threads shares N. kernel threads. The user threads are scheduled on top of the kernel threads. The system allocates resources only to the more "expensive" kernel threads.

Disadvantages of the Mx1 model far outweigh its benefits (Threads and the Java virtual machine). With Mx1 there is some concurrency because if one thread becomes blocked another thread will be scheduled to run. This thread model is lightweight because the kernel does not need to manage the required resources when creating, terminating and scheduling threads. However Mx1 has a critical limitation of not being able to take advantage of multiple CPU systems because a user thread is bound to the process. As a result, the kernel views the application as single threaded. And, because user threads aren't visible to the kernel, it is impossible to get detailed thread specific diagnostic information such as per thread CPU utilization.

In the 1x1 model, processes are containers for threads, which are the only scheduled entities (Threads and the Java virtual machine). This allows straightforward, true parallel execution…

Sources Used in Documents:

Bibliography

Multithreading in the Solaris operating environment. Retrieved March 21, 2004 from Web site: http://wwws.sun.com/software/whitepapers/solaris9/multithread.pdf

Native POSIX Thread Library 0.1 released. Retrieved March 21, 2004 from Web site: http://lwn.net/Articles/10465/

New generation POSIX threads. Retrieved March 21, 2004 from Web site: http://www.onlamp.com/pub/a/onlamp/2002/11/07/linux_threads.html?page=2&x-order=date

Threads and the Java virtual machine. Retrieved March 21, 2004 from Web site: http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,390,00.html
Thread models. Retrieved March 21, 2004 from Web site: http://www.cs.pub.ro/~apc/2002/resources/pthreads/concepts/rzahwm06.htm


Cite this Document:

"Thread Models" (2004, March 21) Retrieved April 25, 2024, from
https://www.paperdue.com/essay/thread-models-166021

"Thread Models" 21 March 2004. Web.25 April. 2024. <
https://www.paperdue.com/essay/thread-models-166021>

"Thread Models", 21 March 2004, Accessed.25 April. 2024,
https://www.paperdue.com/essay/thread-models-166021

Related Documents

This result showed that there was no association between schizophrenics and the 14 candidate genes that were previously identified genes (DTNB1, DISC1, RGS4, STX7, NRG1, DRD2, DAOA, CHRNA7, ARVCF, COMT, PPP3CC, TAAR6, DAOA, and AKT1). Only chance variation was seen in the distribution of the data from the study. Environmental factors in the onset of schizophrenia In the research of the environmental factors that influence the onset and development of schizophrenia,

Schizophrenia/Biopsychosocial Model Schizophrenia and the Biopsychosocial Model In 1977, University of Rochester psychiatrist George Engel posited a theory that disease, and health in general, is a combination of biological, psychological, and social factors, rather than simply biological ones. Researchers have discovered that the need to involve "consideration of function in daily life, productivity, performance of social roles, intellectual capacity, emotional stability and well-being" is an important part of clinical tests and patient

Amazon's eBusiness Model Assessing the Potential of Amazon.com's E-Business Model Amazon.com continues to expand well beyond the boundaries of its initial business model that focused only on books to today including merchandise, suppliers for businesses, and consumables. The common thread that unifies all of these elements together however is the unique customer experience that Amazon.com strives to deliver, all in the context of responsive service (Pine, Gilmore, 2008, et.al.). For Amazon.com to

Abraham showed that all things actually belong to God -- not to us. This lesson may be remembered by me when Providence deems that I should lose something I value. Whether it is a car that I have sunk lots of time and money into, or a friend that I have known and loved for a long time, or a job that I have always wanted -- when these things

Multithreading Single and Multithreading The focus of this report will be to attempt to delve into that void called the operating system and to expose the unique concepts of threading and multithreading. The demand for faster and more powerful computers continues to grow as does the demand for better and faster operating systems. The concept of hyperthreading is the next generation of the idea and will also be touched upon. Both business

Bennis Et Al Model of Change The Bennis and others model of change was described in terms of future leaders, that the leaders of tomorrow must have sturdy sagacity of purpose, the ability to undoubtedly articulate a certain vision with the meaning to bring about change (Bennis, 1996). It further states that a shared vision brings change in both the present and the future. For change to take place in any