Implement a fcfs scheduler

Assignment Help Other Subject
Reference no: EM132248785

Lab

We have discussed the default Xinu scheduling algorithm - priority based round robin.

In this lab assignment, you are required to apply the modifications necessary to implement a FCFS scheduler in Xinu instead of the priority based round robin.

FCFS, unlike the priority based round robin, is a non-preemptive algorithm. Meaning that, once started a process runs to completion without any context switching or it yields the processor willingly, i.e. wait, sleep etc.

So you need to identify what changes you need to make to disable preemptive rescheduling.

Also you need to identify where a process goes into the ready list.

You need to write a new main.c file as well to show the differences between running three processes (Process 2, process 3, and process 4 "assuming the main is process 1") with priorities 5, 10, 20, respectively in the priority based round robin scheduling vs the FCFS scheduling. It is required to show:

1. At the very beginning, each created process prints its ID only once and then sleeps for 15 seconds.

2. If the priority based round robin scheduling is enabled, you should see something like this
"Process 4 is running
Process 3 is running
Process 2 is running
Process 4 is running
Process 4 is running ............ Process 4 will run forever since it is the highest priority. "

3. If the FCFS is enabled, you should see something like this
"Process 2 is running
Process 3 is running
Process 4 is running
Process 2 is running
Process 2 is running ............ Process 2 will run forever since it is the first created process."

Submission
To submit, create a ZIP file of the following items and submit on the course website:

• A pdf file with all the codes of any file you edited or modified.
[Highlighting modifications, showing the full path of each file, and fully commented code]
• A compiled and tested (xinu) folder that includes all the subdirectories even files you did not change. You can "tar" this folder if you want.
• A video demo. You should start with a short introduction of your modified codes followed by the backend open and finally, showing the results. If the video is too long, kindly, divide it into two or three videos.

Verified Expert

The solution file is implemented in c programming which has two functions to run round robin scheduling with time slice 5 and first come first served scheduling algorithms. Both functions are called in main program and showed the result of each process running state. Finally it calculate waiting time then around time for each process. The solution file has report, program and video of program running with input and output.

Reference no: EM132248785

Questions Cloud

What is the general theme of the paper you read : What is the general theme of the paper you read? What does the title mean? What are they trying to do? Why are they trying to do it?
Discuss 3 methods used to monitor and manage individual : Discuss 3 methods used to monitor and manage individual and team performance for example Internal and external quality standards, Audit
Identify the skills you are lacking to use these strategies : Analyze your ability to incorporate these strategies into a consulting project. Identify the skills you are lacking to use these strategies.
Analyse a process for recruiting team members : Evaluate techniques for assessing current and future team capabilities and requirements
Implement a fcfs scheduler : You are required to apply the modifications necessary to implement a FCFS scheduler in Xinu instead of the priority based round robin
Discuss a key knowledge you gained from your learning : Discuss a key knowledge, skill, or ability you gained from your learning this week. Describe how you will apply that learning in your daily life.
Evaluate the use of two theoretical models for developing : Evaluate the use of two theoretical models for developing, managing and leading teams
Single employee is responsible for performing : A job is that unit of work for which a single employee is responsible for performing. In a short essay, tell how and why today's managers seek to design jobs
Why do companies have difficulty increasing : Why do companies have difficulty increasing their profitability by simply buying market share (e.g., lowering prices to increase market share)?

Reviews

len2248785

3/5/2019 10:50:27 PM

To submit, create a ZIP file of the following items and submit on the course website: A pdf file with all the codes of any file you edited or modified. [Highlighting modifications, showing the full path of each file, and fully commented code] A compiled and tested (xinu) folder that includes all the subdirectories even files you did not change. You can “tar” this folder if you want. A video demo. You should start with a short introduction of your modified codes followed by the backend open and finally, showing the results. If the video is too long, kindly, divide it into two or three videos.

len2248785

3/5/2019 10:50:08 PM

you need to submit one Zipped Folder (.zip) that contains: 1. .pdf files that contains answers to any required questions and modified codes showing the modification (such as yellow highlight) 2. .c/.h files that you have changed 3. Video file (shows you explaining the code and showing results/output). There is no need to capture make clean,make, sudo and upload steps, and the opening of the back end. The video file should be maximum five minutes. 4. A tar file of the updated xinu folder (if you want).

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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