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

  Write one java statement to display the string

Write one Java statement to display the string "The average is xxx" to the console, where the xxx displays the value from the double variable sum divided by 3. Make sure the value is displayed with 3 digits following the decimal point.

  Place two three d points a and b in two different locations

Place the two 3d points A and B in two different locations in a simple stereo diagram which demonstrates these two possibilities. Draw a different picture for each situation.

  Write an application that accepts a user password

Write an application that accepts a user's password from an input dialogs. When the entered password is less than six characters, more than 10 characters, or does not contain at least one letter and one digit, prompt the user again.

  Use active directory for authentication and authorization

Why would an organization choose to use Active Directory for authentication and authorization over other solutions such as Novell Netware or a free solution such as Linux based LDAP.

  Report steps necessary evidence and protect company

Jonathan Simpson owns a construction company. Write a one-page report detailing the steps Jonathan and you need to take to obtain the necessary evidence and protect the company.

  Implement the backend for a list

Using an array to implement the backend for a list, create a list class that can contain integers and implements all of the following funtionality via the following functions:List() - the constructor List (const List& 1) - a copy constructor

  Drawing crow-s foot erd using a specialization hierarchy

Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate.

  E-commerce web site

Final project will be a Java programming project that uses design patterns to help form a dynamic Web database application. Final Project:  e-commerce Web Site

  Explain difference between windowlistener and windowadapter

Explain the difference between the WindowListener interface and the WindowAdapter.

  What percentage of total cpu time is spent keeping clock

What percentage of the total CPU time is spent maintaining a clock that is accurate to a resolution of one millisecond?

  Are robots remotely controlled by humans really robots

Are robots remotely controlled by humans really robots?

  Determine the delays of the carry out

Determine the delays of the carry out bit c48 and the gate complexity, i.e, the numbers of AND, OR and XOR gates needed for implementing the following 48-bit adders.

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