Create a server process that acts as a multiple client cpu

Assignment Help Basic Computer Science
Reference no: EM13317097

Create a server process that acts as a multiple client CPU scheduler that handles CPU bursts. Clients represent processes that are already in the Ready state and are contending with each other for the CPU. The CPU scheduler determines the next process to get the CPU. The server will manipulate the Ready state using a Round-Robin scheduler.

Clients send a private FIFO name, a CPU burst, and an arrival time to the server's FIFO.

Each client sends the server a request consisting of a CPU burst, an arrival time that the client inputs from the keyboard, and the private FIFO name. This information is sent to the server through the common FIFO, and the server responds to each client using that client's private FIFO. (At this point, it does not matter whether the client or the server creates the private FIFO.)

Prepare your own test data. On paper, work through your data showing Gantt charts, CPU utilization, and turnaround times. Use these same values for testing your program.

The server:
After the server has received data from all of the clients, it will start the CPU scheduler that assigns the various client processes to the CPU. The server begins at time zero and can be asked for the number of clients before the process begins. The server prints out CPU utilization, average turnaround time, and average waiting time (how long the process is in the Ready state) for the set of data.

The clients:
The client programs receive a CPU burst and arrival time as integer values from the keyboard (or you may send them via command line, if you wish) and send them to the server. After the server has processed the client data, clients will read their individual time spent in the Ready Queue and turnaround time from the server. Each client will only run once. Upon completion, clients will disconnect.

What to turn in:
-Your .c files, zipped and submitted through Blackboard.
-A hardcopy of your documented source code listing that follows the Programming Guidelines.
-Gantt charts which show results of your data. These may be hand-drawn, or computer-generated.
-Input values and Output values with recorded sessions for running the programs once with a time quantum greater than or equal to the maximum CPU burst size, and once with a time quantum less than the maximum CPU burst size.
-An estimate and an actual time spent in each of the following phases: design, implementation and testing.
-Include a ReadMe that clearly shows the steps for executing your programs.

Late Programs: Programs are due at the beginning of class on the due date. They are considered late when class begins. They will be accepted up to two days late and will have 20 points deducted per day. A day is 24 hours. Turn the late programs in to me. 

Reference no: EM13317097

Questions Cloud

Find the magnitude of the angular acceleration of the rod : A thin rod (length = 1.762 m) is oriented vertically, with its bottom end attached to the floor by means of a frictionless hinge. find the magnitude of the angular acceleration of the rod
What is the initial angular velocity of the turbine : A wind turbine is initially spinning at a constant angular speed. As the wind's strength gradually increases, the turbine experiences a constant angular acceleration of0.190 rad/s2. What is the initial angular velocity of the turbine
Does each firm have a dominant strategy : Does each firm have a dominant strategy? If so, explain and what that strategy is and what is the Nash equilibrium? Explain where the Nash equilibrium occurs in the payoff matrix.
Find the direction of the electric field at the origin : A +20 nC point charge is placed on the x axis at x =2.0 m, What is the direction of the electric field at the origin
Create a server process that acts as a multiple client cpu : Prepare your own test data. On paper, work through your data showing Gantt charts, CPU utilization, and turnaround times. Use these same values for testing your program.
Calculate the equivalent uniform annual cash flow : Annual rare based on amount of products which can ordinarily be shipped each year as a function of the amount of vehicles or service purchased with the first cost and the M&O costs.
What is the amplitude of this motion : A point rotates about the origin in the xy plane at a constant radius of 0.132 m and angular velocity of 8.52 rad/s. What is the amplitude of this motion
Compute the degree of the curve given the radius r : Use the chord definition to compute the curve parameters L, T, E, M, LC, R, and stations of the PC and PT for the railroad curve with DC = 2deg0'00', I=18deg,0'00' and PI station =25+50.00ft
Find the amount of ice melted : Steam at 100°C is added to ice at 0°C. Find the amount of ice melted and the final temperature when the mass of steam is 11 g and the mass of ice is 53 g

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  What strategic role can information play in business process

What strategic role can Information play in business process re-engineering

  Write the code for invoking a method

Write the code for invoking a method named sendSignal . There are no arguments for this method. Assume that sendSignal is defined in the same class that calls it.

  Identify organizations that may be susceptible to each type

Identify organizations that may be susceptible to each type of attack and explain what the perpetrators might hope to gain by infiltrating their systems.

  What are some of the more popular database management system

What are some of the more popular database management systems? Why use Oracle?

  Use to create style sheets for your web pages

Write a 2-3 page essay that compares the features of two different CSS software packages and describe which you as a web designer might use to create style sheets for your Web pages and why. Explain the benefits of using CSS in developing your web..

  Explaining options to begin troubleshooting

Which two options should you use to begin troubleshooting?

  Why your program should require o(logn) time per order

The double action system operates as follows. When a new buy order of $x arrives it is simply stored for future use if none of the stored sell orders has an asking price lower than or equal to $x.

  Details on any information

Details on any information/software that might not be submitted for evaluation due to NDA requirements or security/privacy concerns.

  Determine ones complement of sum eight-bit bytes

UDP and TCP use 1s complement for checksums. Assume you have the following 3 8-bit bytes: 01010101, 01110000, 01001100. Determine the 1s complement of sum of these 8-bit bytes?

  Develop a training schedule for hoosier burgers end users

Develop a training schedule for Hoosier Burger's end users, develop a hardware and software installation schedule for Hoosier Burger and develop User Documentation for the Delivery Customer Order Form.

  Find the approximate value of above functions

Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.

  What is an unbreakable uml diagram

What is an "unbreakable" UML diagram. I have a Java assignment, and it's asking for this requirement, but I have never seen or heard of one. A link where I can see the definition and an example would be awesome. Thanks

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