Design and write the client and server programs

Assignment Help Operating System
Reference no: EM13873545

This assignment is a CPU Scheduling with I/O and Round Robin. (document is called "Assignment post") The .rar attachment has the server and client code from my last assignment that dealt with Round robin.

The expert is free to use this as to implement for the CPU scheduling assignment.

CPU Scheduling with I/O and Round Robin

Design and write the client and server programs necessary to provide a multiple client CPU scheduler that handles CPU bursts and I/O bursts. Clients represent processes that are requesting to be placed in the Ready state to contend for the CPU. The CPU scheduler determines the next process to get the CPU. An I/O scheduler determines the next process to do I/O. Your server will manipulate the Ready state using a Round Robin scheduler, and will manipulate the I/O queue using a FCFS scheduler.

Clients send a private FIFO name, an arrival time, and a sequence of CPU bursts and I/O bursts to the server's FIFO. The bursts will represent how long a client needs to use the CPU and how long a client needs to do I/O, respectively. A real client's program would consist of alternating CPU instructions and I/O instructions. So, now your clients will send an array of alternating CPU and I/O bursts in the form of (CPU burst, I/O burst, CPU burst, ... CPU burst). The array always consists of an odd number of values because it always ends in a CPU burst. You will want to enter information from the clients in increasing order of arrival times so that the processes will be enqueued to Ready in that same order.
Do not do memory management.

Each client requests multiple CPU and I/O bursts from the keyboard or the command line. This information, an arrival time, and the private FIFO are sent to the server through a common FIFO. The server responds to each client using private FIFOs. After the server has processed the client data, clients will read their Ready waiting time, I/O waiting time and turnaround time from the server. Each client will only run once. Upon completion, clients may disconnect.

The server begins at time zero and can be asked for the number of clients before the process begins. The server sends the process to the I/O queue when an I/O burst arrives. A process concludes when its final CPU burst is completed. The server prints out CPU utilization, average turnaround time, average Ready wait time (how long the process is in the Ready state), and average I/O wait time (how long the process is waiting in the I/O queue) for the set of data. Each time a process completes, show the contents of the Ready queue and the I/O queue.

Prepare your own test data. On paper, work through your data showing Gantt charts, CPU utilization, turnaround times and waiting times for both the Ready State and the I/O wait. Use these same values for testing your program. Your data should test the capabilities of your code.

Policy Decision: give precedence to a process that is returning from the Ready Queue over a process that is returning from I/O Wait Queue. Make sure that your program tests this condition.

• Read Me: A Read Me gives the user of your program directions for interacting with your program.

• Pseudocode

• A hardcopy of output with a recorded session using your input data and the given data.

• Gantt charts which show results of your data. These may be hand-drawn, or computer-generated.

• Your typed ReadMe that clearly shows the steps for executing your programs.


Attachment:- Last Program.rar

Reference no: EM13873545

Questions Cloud

What is the total debt to asset ratio : A firm has total assets of 2,000,000. it has 900,000 in long term debt. the stockholders equity is 900,000. What is the total debt to asset ratio?
Prepare a critical analysis of a qualitative study : Prepare a critical analysis of a qualitative study focusing on the problem statement, study purpose, research question, literature review, and theoretical framework. This can be one of the selected articles from your previous literature review or ..
Use a lot of short-term debt instead of long-term debt : When the external capital market is very relaxed (e.g., optimistic investors, low interest rate, and many potential investors), would you recommend a start-up firm to use a lot of short-term debt instead of long-term debt? Why or why not? And would y..
Describe the parts of an e-commerce endorsement : Describe the parts of an e-commerce endorsement
Design and write the client and server programs : Design and write the client and server programs necessary to provide a multiple client CPU scheduler that handles CPU bursts and I/O bursts.
Advise samatha on the formation of the agreement : Advise Samatha on the formation of the agreement and her rights under the said agreement. Advise Ahmad and Mr Chan whether there is any contract between them and the MJ Supermarket.
Relatively high volatility in its future cash flows : If a firm is expected to have relatively high volatility in its future cash flows, would you advise the firm to pay no dividends, low dividends, high dividends, or you will advise the CFO to avoid using any equity financing at all? Please outline you..
Identify why are these companies undervalued? : identify why are these companies undervalued?
What is its after tax profit margin : Bubba Corp had net income before taxes of 200,000 and sales of 2,000,000. if it is in the 50% tax bracket, what is its after tax profit margin?

Reviews

Write a Review

Operating System Questions & Answers

  Determine the value of flags

Suppose if the last operation performed on a computer with an 8-bit word was an addition in which 2-operands were 00000010 and 00000011, determine the value of the following flags?

  The shortest job next sjn algorithm queues processes in a

the shortest job next sjn algorithm queues processes in a way that the ones that use the shortest cpu cycle will be

  Analyse the different methods for collecting data

Analyse the different methods for collecting data Explain by taking examples 3 types of Sampling techniques.

  A spawned process

A spawned process may be destroyed automatically when its parent is destroyed, as one method; another design is to have spawned processes proceed independent of the parent

  Operating system provides a mechanism for configuring

Operating system provides a mechanism for configuring the behavior of the keyboard attached to the computer. Outline the behavior of the following sets of keys after they have been configured correctly

  What is the internal data that allows the os to superwise

What is the internal data that allows the operating system to supervise and control the process? Be specific about what it includes.

  Compute number of disk tracks traversed by using fcfs-sstf

Compute number of disk tracks traversed by using FCFS, SSTF, SCAN, and LOOK algorithms for series of disk track service request given below.

  Define critical path and cpm

Define Critical Path and CPM. Define Networks & Network scheduling

  Advantages and disadvantages of major operating system

Consider the advantages and disadvantages of each major operating system that Amy might use on the Web server. In a one-page memorandum to Amy.

  Computing total pay and net pay

Construct a Unix shell script to input number of hours worked and pay rate and compute the total pay, then the social security amount, then the net pay.

  Managing network addressing issues

1st national banks president congratulates you on successfully managing her network's addressing issues. She then shares the data that she's about to make an offer to buy Monroe's other banks, Metropolitan savings.

  The closing process of a project is the last stage of the

the closing process of a project is the last stage of the life cycle of a project is to finalize all activities across

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