Multithreading refers to the ability of an operating system

Assignment Help Operating System
Reference no: EM13159719

Multithreading refers to the ability of an operating system to support multiple threads of execution within a single process. The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, is referred to as a single-threaded approach. In a multithreaded environment, a process is defined as the unit of resource allocation and a unit of protection. The following are associated with processes:

  • A virtual address space that holds the process image
  • Protected access to processors, other processes (for interprocess communication), files, and I/O resources (devices and channels)

Within a process, there may be one or more threads, each with the following:

  • A thread execution state (Running, Ready, etc.).
  • A saved thread context when not running; one way to view a thread is as an independent program counter operating within a process.
  • An execution stack.
  • Some per-thread static storage for local variables.
  • Access to the memory and resources of its process, shared with all other threads in that process.

While the process is running, processor registers are controlled by that process, and the contents of these registers are saved when the process is not running. In a multithreaded environment, there is still a single process control block and user address space associated with the process, but now there are separate stacks for each thread, as well as a separate control block for each thread containing register values, priority, and other thread-related state information.

Discuss (the benefits of threads) if an application should be implemented as a set of related units of execution, it is far more efficient to do so as a collection of threads rather than a collection of separate processes.

Reference no: EM13159719

Questions Cloud

Logistics functions in supply chain : Describe the key logistics functions in a supply chain.
What is the life expectancy of someone with the disease : What are the possible genotypes of the parents? If thedisease is a chromosomal abnormality describe theabnormality.
Evaluate the equilibrium concentrations : Calculate the equilibrium concentrations if the initial concentrations are 2.31M N2 and 0.54M O2. (This N2/O2 concentration ratio is the ratio found in air.)
Why is it difficult for the government to control : What are problems that monopolies can cause, and why is it difficult for the government to control and regulate monopolistic enterprises?
Multithreading refers to the ability of an operating system : Multithreading refers to the ability of an operating system to support multiple threads of execution within a single process. The traditional approach of a single thread of execution per process, in which the concept of a thread is not recognized, is..
How might efficiency wages contribute to downward wage : How might efficiency wages contribute to downward wage inflexibility, at least for a time, when aggregate demand declines.
Degree of the gender roles : What degree of the gender roles we play is determined by our biology? How much is determined by our culture? How are interdependence, connectedness, social dominance, aggression, and sexually influenced by gender roles?
Amounts applicable to future services : Orange Cable TV Company, an accrual basis taxpayer, allows its customers to pay by the year in advance ($350 per year), or two years in advance ($680). In September 2009, the company collected the following amounts applicable to future services:
Is the slug population in hardy weinbergequilibrium : The total population consists of 200 very slimy slugs along with400 barely slimy; there are also 400 slugs with mediumsliminess.

Reviews

Write a Review

Operating System Questions & Answers

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Multiple choice - system analysis and design

The primary benefits of the Waterfall Development methodology is needs are completely specified and held relatively constant prior to programming.

  Concept and process of data binding

Describe the idea and process of Data Binding. Include an example of statements that would be used to create a Binding object. Describe components and effects of your model statement.

  Intermediate level tasks

Intermediate Level Tasks :  Below is a simple program. It creates 2 threads. The first thread keeps printing out X on the screen, and the second thread keeps printing out O on the screen.

  Explain how a race condition is possible

the wife calls deposit (). Describe how a race condition is possible and what might be done to prevent the race condition from occurring.

  Automate or automated patch deployment

Discuss and define Automate or Automated patch deployment?

  Explain the role of antennas in transmission

Explain the role of antennas in transmission of radio waves. Determine what type of antenna is typically used in a wireless LAN?

  Design virtual memory system for new operating system

You are asked to design the virtual memory system for a new operating system working on small mobile devices. The memory operates at 333 MHz with a word size of 4 bytes.

  Role of a database management system

Discuss the role of a database management system (DBMS) and what are its benefits and how does a relational database management system differ from a flat document?

  Question about about telecommunications

Think about a simple telephone network consisting of two end offices and one intermediate switch with a 1-MHz full-duplex trunk in each end office and the intermediate switch.

  Explain limitations of ray tracing

There are many ways to render an object and the selection depends on the use the work will be put to

  Disadvantages to living in an information age

Discuss some of the disadvantages to living in an Information Age? At present more and more people rely on computers to create, store, and manage critical information.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd