Question

Operating Sytsem [2] (i) Define Timesharing.      (ii) In a one processor system, there is an interrupt...

Operating Sytsem

[2] (i) Define Timesharing.

     (ii) In a one processor system, there is an interrupt clock which is set to a “time slice Q”, that is, every Q an interrupt occurs to stop the process. There is only one I/O device in the system    which is interrupted when the process needs an I/O. There are 3 processes A, B, C.

     

     Process A executes an I/O interrupt every T units of time.

     Process B executes an I/O interrupt every 2T units of time.

     Process C executes an I/O interrupt every 3T units of time.

(a) Which of the above processes will benefit the most and which is not when Q = T.

      Explain your answer

(b) Which of the above processes will benefit the most and which is not when Q = 2T.

      Explain your answer

(a) Which of the above processes will benefit the most and which is not when Q = 3T.

      Explain your answer

What is the best value should Q takes for good performance ? explain your answer in full.

Homework Answers

Answer #1

i) Time-sharing:- Time sharing is a type of operating system, it enables multiple user who are located at the various terminals, to use the same computer system at the same time. In a time sharing system the main objective is to minimize the response time. The time- sharing systems were built and developed to provide an interactive use of the computer system. It uses CPU scheduling and multi - programming to provide each user with a small portion of a time - shared computers.

II) a)    process which will benefit the most and which is not when Q = T :-

The Process C will benefit the most for Q = T as it is already defined above that Process A executes an I/O interrupt every T units of time. Assuming, for 1 sec second it states that for every one second Process A executes an I/O interrupt and hence, it will interrupts the CPU when new data has arrived and is ready to be retrieved by the system processor. and so Process A having Q = T will interrupt the least. Since, excessive amounts of processing time will be spent handling interrupts

b) process which will benefit the most and which is not when Q = 2T :-

Process C will benefit the most in this case as it will produce less interruption in the I/Odevice for every one second. Whereas, Process A will be the least beneficial .

c) process which will benefit the most and which is not when Q = 3T :-

Process C will be the most beneficial in thiss case having the same amount of interruption for each second whereas Process A will be least beneficial.

Hence, Process C will be the best among all for Q to get good performance as Interrupts provide low overhead and good latency at low load, but degrade significantly at high interrupt rate. excessive amounts of processing time spent in handling interrupts can cause interruption storm and hinder the performace of the system.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. A mechanism by which other modules, such as I/O and memory, may interrupt the normal...
1. A mechanism by which other modules, such as I/O and memory, may interrupt the normal sequencing of the processor is called (A) Communication (B) Trap (C) Interrupt (D) I/O (E) None of the above 2. A mode of operation that provides for the interleaved execution of two or more computer programs by a single processor is called (A) Interrupt (B) Multi-programming (C) Multi-tasking (D) Multi-threading (E) None of the above 3. Which of the following is a memory location...
Assume several processes are running concurrently on a single processor system. Assume also that at time...
Assume several processes are running concurrently on a single processor system. Assume also that at time 2, P1 is running, no system resources (other than the CPU and memory) are being used, and that no process is in a blocked state waiting for an event to occur. Consider the following events: At time 3: P1's time slice expires At time 6: P2 is dispatched and given the CPU At time 7: P2 executes a command to read from disk unit...
(b) Which is not on-site wastewater treatment system? i) Septic system ii) Pit privy iii) Absorption...
(b) Which is not on-site wastewater treatment system? i) Septic system ii) Pit privy iii) Absorption field iv) Carbonation (f) DNA alternation is caused by i) Carcinogen ii) Teratogen iii) Acetogen iv) Mutagen (g) The relationship between substrate and growth rate of aerobes can be explained by (j) If F/M is high, then i) Longer SRT ii) High yield iii) Better effluent quality iv) Microbes are starving (k) During biological P removal, PAOs i) release S in anaerobic condition ii)...
IN THIS PROBLEM, I ALREADY HAVE SOLUTION TO THE QUESTION. PLEASE REVIEW THE SOLUTION AND HIGHLIGHT...
IN THIS PROBLEM, I ALREADY HAVE SOLUTION TO THE QUESTION. PLEASE REVIEW THE SOLUTION AND HIGHLIGHT ANY ISSUES WITH IT. iF THE ANSWER IS WRONG PLEASE PROVIDE THE ANSWER. Question: Answer the following question with a clear explanation, showing any steps or processes used to reach the answer. Explain your process as though you are teaching the concept to a student who isn't familiar with economics. Currently, the demand equation for toasters is Q = 80 – 2P. The current...
In the book Advanced Managerial Accounting, Robert P. Magee discusses monitoring cost variances. A cost variance...
In the book Advanced Managerial Accounting, Robert P. Magee discusses monitoring cost variances. A cost variance is the difference between a budgeted cost and an actual cost. Magee describes the following situation: Michael Bitner has responsibility for control of two manufacturing processes. Every week he receives a cost variance report for each of the two processes, broken down by labor costs, materials costs, and so on. One of the two processes, which we'll call process A , involves a stable,...
Avoid plagiarism.. I want from your word please Q1 Give example of company using ABC costing...
Avoid plagiarism.. I want from your word please Q1 Give example of company using ABC costing and explain the process used in this company to assign costs in an ABC system? (Week 7: ABC costing) Answer:       Q 2 Give examples of questions managers could ask to help them identify relevant qualitative factors that will be used before making decision? (Week 9: Relevant information for decision making) Answer:       Q 3 Kadhim Co. manufactures product B which is a part...
Hey i just read your comment and you just need to answer do you agree or...
Hey i just read your comment and you just need to answer do you agree or disagree with ir and explain My Teacher gave this answer and we need to response this answer You need to response this answer why you agree with it or why you disagree and explain You have Two Answer you need to response on your own word Reactions may include: feedback, agreements, disagreements, etc. with supporting facts, material, citations, etc. to support your reaction (or...
I did already posted this question before, I did get the answer but i am not...
I did already posted this question before, I did get the answer but i am not satisfied with the answer i did the code as a solution not the description as my solution, so i am reposting this question again. Please send me the code as my solution not the description In this project, build a simple Unix shell. The shell is the heart of the command-line interface, and thus is central to the Unix/C programming environment. Mastering use of...
Test I. 2. Which is NOT a function of the urinary system. A. regulationof blood volume...
Test I. 2. Which is NOT a function of the urinary system. A. regulationof blood volume B. excretion of wastes C. regulation of erythrocyte production D. regulation of lymphocyte production 3. An increase of ADH causes the kidneys to ______ the reabsorption of water, causing them to produce ______ urine. A. increase; more B. increase, less C. decrease; more D. decrease; less 4. Aldosterone casues an increase in Na+ and Cl- _______ from the nephrons, which _______ the volume of...
I just need the following questions answers Quantitative Research Designs 101 1. Quantitative research attempts to...
I just need the following questions answers Quantitative Research Designs 101 1. Quantitative research attempts to do which of the following? a. Identify, define and measure factors that contribute to a disorder or disease. b. Examine relationships among factors. c. Evaluate the cost-effectiveness of an intervention. d. All of the above 2. Qualitative and quantitative research designs are appropriate to answer different types of public health questions. Which of the following is NOT an objective of qualitative research? a. To...