+1-415-670-9189
info@expertsmind.com
Implementation of algorithms for process management
Course:- Operating System
Reference No.:- EM13206




Assignment Help
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.

Hints:

- 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
 
Minimize


Ask Question & Get Answers from Experts
Browse some more (Operating System) Materials
In this way, programs that feel it is immoral to block can first inspect the semaphore to see if it is safe to do a down. Will this idea work if three or more processes use
Ques 2: Assuming that a file's current permission are rwx r-- r-x , specify chmod expression required for this change Ques 3: Your application home directory is full? How will
As the chief engineer at a highly successful operating systems company, you must make tough choices regarding engineering tradeoffs every day. As a former Linux administrato
The program you develop should take a message given as a command line argument and append it to a file (also specified on the command line). The file should have no permissi
Explain why other operating systems may or may not fit. Choose an operating system, and then summarize your thoughts about your choice. Include an explanation of why standardi
How and why did database management systems become the organizational data management standard? Discuss some advantages of the database approach over the file-system approac
Write a paper on how buffer overflows are used to exploit computers. Give real world examples of buffer overflow attacks and describe of you would protect your system from t
The software house has been contacted by a Governmental Nuclear Reactor Agency that wants to change the current Operating System of their plant.