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

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

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

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

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