Transitions between states of ready run and blocked

Assignment Help Computer Engineering
Reference no: EM13897211

1) The following state transition table is a simplified model of process management, with the labels representing transitions between states of READY, RUN, BLOCKED, AND NONRESIDENT.

 

READY

 

RUN

 

BLOCKED

 

NONRESIDENT

 

READY

 

-

 

1

 

-

 

5

 

RUN

 

2

 

-

 

3

 

-

 

BLOCKED

 

4

 

-

 

-

 

6

 

Give an example of an event that can cause each of the above transitions. Draw a diagram if that helps.

2) In a number of early computers, an interrupt caused the register values to be stored in fixed location associated with the given interrupt signal. Under what circumstances is this a practical technique? Explain why it is inconvenient in general.

3) You have executed the following C program:

main ()

int pid;

Pid = fork ();

Printf ("%d n , pid);

What are the possible outputs, assuming the fork succeeded?

4) It was pointed out that two advantages of using multiple threads within a process are that (1) less work is involved in creating a new thread within an existing process than in creating a new process, and (2) communication among threads within the same process is simplified. Is it also the case that a mode switch between threads within the same process involves less work than a mode switch between two threads in different processes?

5) In the discussion of ULTs verses KLTs, it was pointed out that a disadvantage of ULTs is that when a ULT executes a system call, not only is that thread blocked, but also all of the threads within the process are blocked. Why is that so?

6) If a process exits and there are still threads of that process running, will they continue to run? Explain.

Reference no: EM13897211

Questions Cloud

What is life cycle assessment and how is it conducted : What is Life Cycle Assessment and how is it conducted and What is the difference between cradle to grave, cradle to gate, and gate to grave?
What is the efficiency of the balanced line for wild widget : What is the efficiency of the balanced line? If demand decreased to 40 units per day, what changes would be  needed, if any?
Describe the data warehouse application : Describe the data warehouse application you propose to work with throughout the module. Your description should be brief and relatively formal
Refer to simon company''s balance sheets : Refer to Simon Company's balance sheets in Exercise 17-7. Analyze its year end short term liquidity position at the end of 2014, 2013, and 2012 by computing
Transitions between states of ready run and blocked : The following state transition table is a simplified model of process management, with the labels representing transitions between states of READY, RUN, BLOCKED, AND NONRESIDENT
Why should an organization conduct an environmental audit : Why should an organization conduct an environmental audit and If an audit is conducted - should any violations be self-reported?
The company''s income statements for the years ended december : The company's income statements for the years ended December 31, 2014 and 2013 follow. Assume that all sales are on credit and then compute:
Why is maintenance of environmental health quality important : Why is maintenance of environmental health quality important for human health? What ideals from the Christian Worldview help us to make concern for environmental health paramount and meaningful?
In what ways are drp and mrp similar and different : In what ways are DRP and MRP similar and how are they different? How have advances in computer technology changed the planning process? Why? What changes do you expect in the future?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Configuring a database

Configuring a Database

  Program that contains the time-conversion functions

build a library Time that contains the time-conversion functions (given a number of seconds, returns the equivalent number of minutes; given the number of minutes, returns the equivalent number of hours; given the number of hours, returns the equi..

  Make the price of an item for each of the five days

The Last Stop Boutique is having a five-day sale. Each day, starting on Monday, price will drop 10% of the previous day's price. For example, if the original price of a product is $20.00, the sale price on Monday would be $18.00 (10% less than the..

  Develop a security awareness training presentation

Develop a Security Awareness Training presentation

  Recall extensive change that have witnessed

Try to generalize your observations so they can serve as a guideline for similar cases.

  Modifying the database table

A database table comprises of the following columns: employee's name, SS#, job-title, years-in-job, hiring-date, and base-salary.

  Question1 runattached file addtwonumbersmas is a marie

question1 runattached file addtwonumbers.mas is a marie program to do plain addition of two number already stored in

  What is the value of beta

What is the value of beta after the subsequent code executes if the input is 1?

  Execute the boolean functions

Execute the Boolean functions

  What will be the thoughts on training

This issue of training is so to each organization, so there is no one-size-fits-all plan. I do believe in training staff just before a new system is deployed, then provide regular update, new feature, best practice, and tips training on an ongoing..

  Discuss the process of producing the web site

A definition of the sort of users that would be expected to access the site. This should incorporate a description of any special provision needing to be made to make the site usable for disabled users (if that is appropriate).

  How many different normal forms to choose from

how many different normal forms to choose from.

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