Discuss what you may observe on overall system performance

Assignment Help Operating System
Reference no: EM131324601

Operating Systems Assignment

Processor Scheduling

Processor scheduling is aimed to assign processes to be executed by the processor (or processors) in order to achieve certain operating system objectives, such as response time, turnaround time, throughput, and processor efficiency. Scheduling generally affects the overall performance of a system as it determines which process should wait and which process should proceed for execution. Hence, scheduling algorithms are designed to manage queues of processes with the purpose to minimise the queing delay and to optimise the system performance.

The aim of this assignment is to implement and simulate the performance of three different scheduling algorithms and to observe the effects of each of these scheduling algorithms on the overall system performance.

All the programs should be implemented on the Unix operating system with either C or Python language.

Running your program with an input file

For each program implemented for the tasks below, it should take an input file as a command line input. You may name the input file as processes.txt, for example.

Note that the input file should have the following structure: the first column contains the process ID; the second column indicates the arrival time (in seconds) of each process in the Ready queue; and the last column refers to the total processing time (in seconds) required for the corresponding process. Assume that all these processes are processor- bound only (i.e. no I/O operations are involved).

P1

0

3

P2

1

6

P3

4

4

P4

6

2

Task 1: First-Come-First-Served Scheduling

In the first task, you will implement the simplest scheduling algorithm that based on the first-come-first-served (FCFS) approach. With this strict queuing scheme, the process that first arrives in the Ready queue is the first to be allocated with the processor for execution. In other words, when the currently running process completes its execution, the next process to be selected for execution is the one that has been in the Ready queue for the longest. This is a non-preemptive algorithm.

Your implementation for the FCFS scheduling should compute and output the following:

• Turnaround time and waiting time for each process
• Average turnaround time and average waiting time for all the processes
• Overall throughput of the system (i.e. the number of processes completed per second)

Task 2: Round Robin Scheduling

For the second task, you will implement a pre-emptive scheduling algorithm that based on the Round Robin (RR) approach. Processes in the Ready queue are still scheduled on the first-come-first-served basis; however, each process is assigned with a fixed time quantum for execution. Upon the given time quantum elapsed, the currently running process is preempted by the scheduler and placed to the end of the Ready queue. The next process in the Ready queue will be selected for execution; and this continues until all jobs complete its execution. (For the purpose of this assignment, assume that the time quantum is set to 2 seconds.)

As in Task 1, your implementation for the RR scheduling should compute and output the following:

• Turnaround time and waiting time for each process
• Average turnaround time and average waiting time for all the processes
• Overall throughput of the system (i.e. the number of processes completed per second)

Task 3: Shortest Remaining Time Scheduling

The third scheduling algorithm that you will implement is based on the Shortest Remaining Time (SRT) concept. With this algorithm, the process with the shortest expected remaining processing time is always chosen by the scheduler. For each new process that arrives in the Ready queue, it may have a shorter remaining time than the currently running process. As such, the scheduler may preempt the currently running process and promote the newly arrived process for execution. (If two processes shared the same shortest remaining processing time, the FCFS approach is used for breaking the tie.)

Your implementation for the SRT scheduling should again compute and output the following:

• Turnaround time and waiting time for each process
• Average turnaround time and average waiting time for all the processes
• Overall throughput of the system (i.e. the number of processes completed per second)

Task 4: Discussion

For this final task, based on the results presented by each scheduling algorithm, discuss what you may observe on the overall system performance. For example, which algorithm gives a shortest waiting time or a shortest turnaround time on average, or with a better system throughput?

Other discussion may include which algorithm is in favour of either the shorter processes or the longer processes.

Important Notes

Commenting your code is essential as part of the assessment criteria. You should also include comments at the beginning of your program file, which specify your name, your Student ID, the start date and the last modified date of the program, as well as a high- level description of the program. In-line comments within the program are also part of the required documentation.

Submission

There is NO hard copy submission required for this assignment. You are required to submit your assignment as a .zip file named with your Student ID. For example, if your Student ID were 12345678 then you would submit a file named 12345678_A3.zip. Marks will be deducted if this requirement is not strictly complied with.

Deliverables

Your submission should contain the following:

• A completed Assignment Cover Sheet. This document is available for download from the Assignment Section of the FIT2070 Moodle website.

• A documentation in MS Word or PDF format, stating:

1. Clear and complete instructions on how to install and run your programs.
2. Discussion on the system performance with different scheduling algorithms (i.e. Task 4).

• Electronic copies of ALL your files that are needed to run your programs.

Marks will be deducted for any of these requirements that are not strictly complied with.

Reference no: EM131324601

Questions Cloud

Write a descriptive annotated bibliography : Write a descriptive annotated bibliography.-  Select a current public health issue.- Conduct a search for programs at the local, state or federal level that are addressing the issues.
Creation of the nation state of israel : Judaism: Watch a BBC documentary about the creation of the nation state of Israel. Write a minimum of two pages based on the one hour documentary. Include lessons learned and deep analytical thought
What new technologies are being developed in the computer : What new technologies are being developed in the computer industry and how can those technologies be utilized for business and process analysis?
Write a paper on hinduism : Write a paper on Hinduism on any topic related to the subject but get it approved by me asap
Discuss what you may observe on overall system performance : FIT2070: For this final task, based on the results presented by each scheduling algorithm, discuss what you may observe on the overall system performance.
Why brazilian farmers are receiving lower prices : If you knew only the direction of the shifts in both the supply and the demand curves, could you predict that prices would fall? Why or why not?
Describe the political and cultural landscape : How would you describe the political and cultural landscape introduced by the Delhi Sultanate and their successors (such as the Deccan Sultanate to the Mughals) in northern India and south India
Analyze a recent article in the financial press : Analyze a recent article of your choosing in the financial press.- The article must be related to Some of the topics include empirical evidence on parity conditions.
How much does the demand curve for processed pork shift : In Equation 2.2, suppose that the price of beef, in Canada increased by 30%, from $4 to $5.20. In what direction and by how much does the demand curve for processed pork shift?

Reviews

Write a Review

Operating System Questions & Answers

  How can i design a distributed shared memory over sockets

How can I design a distributed shared memory over sockets? Using two or more computers, i want project includedistributed system shared memory between to computer.

  How long should a system be idle to benefit from hibernating

If reading or writing a cache-line of size 64 bytes to Flash requires 2.56 ?J and DRAM requires 0.5 nJ, and if idle power consumption for DRAM is 1.6 W (for 8 GB), how long should a system be idle to benefit from hibernating? Suppose a main memory..

  Show possible interleavings of the execution

A concurrent program with 2-procedure, p and q, defined as follows, A,B,C,D, and E are arbitrary atomic statements. Suppose that the main program does a parbegin of the two procedure.

  Discussion on internet phone and pbx

An interesting emerging market is using Internet phone and a corporation's high speed LAN to replace same corporation's PBX. Create a page report on the issue.

  How operating system is clearly superior for any application

Consider the advantages and disadvantages of each major operating system that Amy might use on the Web server. If you don't think that one operating system is clearly superior for this application, describe why.

  System software

What Does a Computer Do?.Input - sends data to the processing unit Process - executes instructions and memory holds programs and data when being used.

  Schedule for shortest-job-first and roundrobin algorithms

Process 2 has total of 20 units of work to perform. This process arrives just behind P1. Illustrate the resulting schedule for shortest-job-first (preemptive) and roundrobin algorithms.

  Identify all of the substrings that form numbers

Could you explain or convert each of the code , symbols used in the following solution?

  Procedure to manually remove the existing power supply

Explain the procedure necessary to properly install or replace the computer power supply in a computer.

  Dedicated microprocessor for inputting multiple 8-bit unsign

Design a dedicated microprocessor for inputting multiple 8-bit unsigned numbers until a zero is entered. Then output the number of numbers entered. First design the datapath and write the control words for it. Clearly label all control signals. Th..

  Find an arbitrary non-preemptive schedule of the tasks

Find an arbitrary non-preemptive schedule of the tasks. To make the problem simple, it is assume that the first instance of the three tasks {τ1, τ2, τ3} are invoked at time zero. Try to use integer linear programming framework to find the schedule..

  Describe the booting process for windows xp system

Explain the design goals of Windows XP and describe the booting process for Windows XP system - describe the three main architectural layers of Windows XP

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