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 does it mean if they are public or private

When creating classes you have member functions and member variables. What are they and what data types can you use for member variables? What does it mean if they are public or private

  Prepare design proposal for new office network

Callingyou Inc is a growing company providing 24-7 telephone support services for numerous companies. They have asked you to prepare a design proposal for their new office network.

  Receiver initiated distributed scheduling algorithms

Receiver initiated distributed scheduling algorithms suppose task pre-emption at the sender site.

  Article relevant to current social engineering threats

Select an article relevant to current social engineering threats.

  Demonstrate the both the commit and the rollback

Write a script to test your procedure. Demonstrate the both the commit and the rollback.

  What are some internal and external factors

Cite at least two successful and two unsuccessful examples of the use of IS/IT for gaining or enhancing competitive advantages.

  Find all the sections associated with the course

Find the names of faculty who have taught every course that is being taught by John Nick in Spring 2010. Give an expression in Relational alegebra and domain relational calculus.

  Description of what the computer considers

For your initial post, provide your own description of what the computer considers "TRUE" and what the computer considers "FALSE." Then, provide at least two code examples (original examples) that would return TRUE, and provide a description of what ..

  Sockets are considered a low-level

Sockets are considered a low-level means for two applications to connect to each other and send/receive information. An alternative approach is the notion of distributed objects.

  What is optimal strategy if n is known

Consider the numerical 20 questions game. In this game, player 1 thinks of a number in the range 1 to n. Player 2 What is an optimal strategy if n in known?

  Write a java program that will print the words hello world

Write a java program that will print the words Hello World

  Use the class date type to store the date of birth

Use the class date type to store the date of birth, admit date, discharge date, and class doctorType, to store attending physicians name. Add appropriate constructors and member functions to initialize, access and manipulate the data members.

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