Question

In: Computer Science

note (Please solve the questions in the language of operating systems) [2] (i) Define Timesharing.    ...

note (Please solve the questions in the language of operating systems)

[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.

[3] (a) Define DMA (Direct Memory Access).

      (b) An input device can transmit 100 characters every 4 mils 10 , if the CPU needs 2 mics to service the

            Interrupt. How much time is left for asynchronous I/O. What if it can transmit 1000 characters

            every 4 mils and the CPU also needs 2 mics for the service routine.

            What do you think? Explain your answer in details.

[4] (a) What is the interrupt types? Give examples.

      

       (b) What type of interrupt the following pieces of code in C might generate. Explain your answer.

(i)

int n = 0;

while (n = 0)

  printf(“Hello”);

            (ii)

           

            int n = 1 , m = 0, x = 10;

            while (n/!x<0.001)

                 { m +=x;

                   n++;

                 }

           

           

       [5] Draw clearly explaining briefly what is happening the following:

           

  1. Interrupt Vector
  2. Instruction Cycle with instruction cash register.
  3. System Queues and Scheduling.

Solutions

Expert Solution


Related Solutions

Please solve it quickly as it is urgent AC and Refrigeration Electrical Systems Note: Think carefully...
Please solve it quickly as it is urgent AC and Refrigeration Electrical Systems Note: Think carefully about Compressor motor control circuit and main circuit and the components. For diagrams, use Microsoft word tools and also you can scan and paste in particular answer keeping in view, font number and proper line spacing. 2. Differentiate control circuit and main power circuit of three phase compressor motor. ( 4 marks)
Please note, questions 1 and 2 have already been answered and are listed down below. I...
Please note, questions 1 and 2 have already been answered and are listed down below. I need help with question 3. Case Study: Topic and Detailed Instructions A central theme of contemporary operations management is focus on the customer. This is commonly understood to mean that if a company does focus on its customers and it if is able to consistently deliver what the customer wants in a cost-effective manner, then the company should be successful. The hard part is...
Please I want answers for these questions. Thanks Note: I want them by typing not by...
Please I want answers for these questions. Thanks Note: I want them by typing not by hand writing Q2 Explain why a market structure in which money is used as a medium of exchange is more conducive to the expansion of trade and exchange than a barter system. What is money? Explain the three functions that money performs. What is the relationship between money and inflation? Explain
Please solve all of the questions, questions 1, 2, and 3. Please show all work and...
Please solve all of the questions, questions 1, 2, and 3. Please show all work and all steps. 1.) Find x(t) = Σ aktk such that tx'' = x 2.) Find x(t) = Σk>=0 aktk such that x'' = tx + 1 and x(0) = 0, x'(0) = 1 3.) Using the Frobenius method, solve t2x'' - 3tx' + (4-t)x = 0
Please answer both the questions. 1 a) Design two bits comparators using Verilog description language Note:...
Please answer both the questions. 1 a) Design two bits comparators using Verilog description language Note: Design means RTL code and Testbench covering all possible corner cases) b) How many latches will result when the following code is synthesized? Assume B is 4-bits long.                                always@(state)                                begin                                         case(state)                                       2’b00: B = 5;                                          2’b01: B = 3;                                       2’b10: B = 0;                                         endcase                                end
PLEASE PLEASE SOLVE BOTH QUESTIONS !!!!!!!!!!!! Question 2. The Preston Opera Company is putting on a...
PLEASE PLEASE SOLVE BOTH QUESTIONS !!!!!!!!!!!! Question 2. The Preston Opera Company is putting on a production of “the Mikado”. The production will run for 12 performances. The performers and production staff do this on an amateur basis and are not paid for their work. The production will be held in the Darebin Arts Centre, and the cost of hiring the venue is $250 per performance plus $2.50 for each ticket sold. Royalties are payable to the copyright owner at...
Can you please solve these questions/ statements using python? I started with "importing" the file. I...
Can you please solve these questions/ statements using python? I started with "importing" the file. I only need question one to be answered not two-four. Can use whatever data frame of choice, I just need a sample code for each line. Thank you #1. #Fit a linear regression model on data: USA_housing.csv to predict the Price of the house. import pandas as pd housing_df = pd.read_csv("USA_Housing.csv") #Income: Avg. area income #Age: Avg age of the houses #Bedrooms: Avg No of...
Note: I need a code and other requirement Note: programming language is c++ If you need...
Note: I need a code and other requirement Note: programming language is c++ If you need more information, please clarify what information you want. consider solving the equation sin(x) - e^(-x) = 0 write a computer program to solve the given equation using: 1- bisection method 2- fixed-point method 3- newton's intervals: {0,1},{1,2},{2,3},{3,4},{4,5},{5,6},{6,7},{7,8},{8,9},{9,10} choose accuracy E = 10^(-5) Make sure you document your program Requirement : 1- Mathematical justification 2- algorithem description 3- code (program) with documentation 4-output: roots ,...
Please solve all the following questions. I need the text file and screenshots of encryption and...
Please solve all the following questions. I need the text file and screenshots of encryption and decryption. Exchange of encrypted data. a. Encrypt a file (e.g., a text file) with an algorithm and a key length of your choice. b. Exchange the file and the necessary credentials for decryption (i.e., algorithm, key) with your neighbor. c. Decrypt the secret of your neighbor.
Note: No handwriting, please 1. Define traditional banking and describe the causes of its demise. 2....
Note: No handwriting, please 1. Define traditional banking and describe the causes of its demise. 2. Explore different competitors to traditional banking, like credit unions and online banking - what do they use to compete with traditional banking institutions? 3. Explain why the government can't simply legislate bad things out of existence. 4. Explain how the government regulators made the Savings and Loan Crisis worse, and exacerbated the Great Depression.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT