Implementation of algorithms for process management
Course:- Operating System
Reference No.:- EM13206

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
Assignment Help >> Operating System

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst. Shortest remaining time rst algorithm (SRT) is used in real-time process management in operating systems.


- You need to assume a list of processes that have di erent length (For the purpose of demonstration, the length may need to set to very large. You can generate the pro- cesses either manually or using random functions within your chosen programming language)

- You need to arrange the processes become ready at di erent times for the SRT algorithm.

- You need to construct a READY Queue to hold both newly arrived and the sent- back processes in the case of the SRT algorithm.

You are required to

Task 1) Produce a flowchart for the algorithm

Task 2) Implement the algorithm in a programming language that you are familiar with (e.g.C or C++).

Task 3) Run your program with three cases (each having at least ve processes) for the two algorithms.

- Each case should be run for both algorithms in order for you to make a comparison of the average turnaround time.? Record your input and output for each of the three runs (It would be preferred to display your results on computer screen.).

- Inputs should include case speci c information such as the arival time of the process and the number of CPU cycles the process takes to run to completion.

The single important output is the average turnaround time for case speci c inputs (although a repesentation of the order of processes may be useful for debugging).

Task 4)

A brief report covering your diagrams, source code, input and output for each run of your program, and a short conclusion of the algorithm including a comparison of the average turnaround times for the cases tested for the two algorithms. Also make comment on preemptive and nonpreemptive algorithms.

Put your comment

Ask Question & Get Answers from Experts
Browse some more (Operating System) Materials
Create a use-case diagram to include at least three (3) actors for the system described in this case through the use of graphical tools in Microsoft Word or Visio, or an ope
The University of Hawaii campus is spanned over 2 miles. It has 7 colleges and each college building is separated from each other by at least 1000 feet. Each building has 4
CS4760 Operating Systems, Unix System Calls and Library Functions, The goal of this homework is to become familiar with the environment in hoare while practising system calls.
While working with a 2.5 GHz pipelined MIPS processor which has a L2 cache unit miss penalty of 10 ns and a memory miss penalty of 50 ns, determine the Effective CPI for a pro
Write a 1- to 2-page paper defining and describing the GNU public license and its role and Write a 1- to 2-page paper defining and comparing open source and closed source oper
Perform Internet research to review at least 3 contemporary operating systems (OS). Choose at least one Mac and one Windows OS, along with one of the following OS kinds.
I need a Logical Network Diagram and Physical Network Diagram of this original configuration. I have VISO and PAINTSHOP. I prefer a VISO diagrams. I can increase compensatio
Detail the considerations that are involved in selecting a target operating system to serve as a potential host for the design and implementation of a virtual machine monito