Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project Details: 1. Program should have command argument options to get input data from a text file and command argument option for write output data.-f

image text in transcribed

Project Details: 1. Program should have command argument options to get input data from a text file and command argument option for write output data."-f" must be used for command argument and following text indicate input file name and "0" for output file name student@db:--/ce351 -f input.txt o output.txt 2. This file should have three columns and unlimited rows. It must be text and fields should delimit by ":" character. Below table represent structure of this file. Burst Time Arrival Time Priority 10 0 0 5 0 Some data fields may not use at decision process so you can omits the values. But every process should have three of these values. At the Appendix section input.txt file given as example. 0 3. After first time executing simulator should ask for user to choose scheduling method. Menu should have at least four options. CPU Scheduler Simulator 1) Scheduling Method (None) 2) Preemptive Mode (Off) 3) Show Result 4) End Program Option> a) Scheduling Method: In this mode program optain scheduling method from user. You should implement: None: None of scheduling method chosen First Come, First Served Scheduling Shortest-Job-First Scheduling Priority Scheduling Round-Robin Scheduling (You should also obtain time quantum value) b) Preemptive Mode: This is a clock-driven mode, in which the clock is a counter that is incremented each simulated second. The clock is Initially 0, and continues "ticking" until all the jobs in the input have been serviced and left the system. This simulation runs until a particular number of jobs have been serviced. Non-preemptive Mode: In this mode dispatcher should make decision after running process was terminated. Project Details: 1. Program should have command argument options to get input data from a text file and command argument option for write output data."-f" must be used for command argument and following text indicate input file name and "0" for output file name student@db:--/ce351 -f input.txt o output.txt 2. This file should have three columns and unlimited rows. It must be text and fields should delimit by ":" character. Below table represent structure of this file. Burst Time Arrival Time Priority 10 0 0 5 0 Some data fields may not use at decision process so you can omits the values. But every process should have three of these values. At the Appendix section input.txt file given as example. 0 3. After first time executing simulator should ask for user to choose scheduling method. Menu should have at least four options. CPU Scheduler Simulator 1) Scheduling Method (None) 2) Preemptive Mode (Off) 3) Show Result 4) End Program Option> a) Scheduling Method: In this mode program optain scheduling method from user. You should implement: None: None of scheduling method chosen First Come, First Served Scheduling Shortest-Job-First Scheduling Priority Scheduling Round-Robin Scheduling (You should also obtain time quantum value) b) Preemptive Mode: This is a clock-driven mode, in which the clock is a counter that is incremented each simulated second. The clock is Initially 0, and continues "ticking" until all the jobs in the input have been serviced and left the system. This simulation runs until a particular number of jobs have been serviced. Non-preemptive Mode: In this mode dispatcher should make decision after running process was terminated

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions