Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

d Program should have command argument options to get input data from a text file and command argument option for write output data. -f must

dimage text in transcribedimage text in transcribedimage text in transcribed

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 "-o" for output file name. student@db: \$ ./cpe351 -f input.txt o output.txt 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. 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 ile given as example. 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) File invut.txt sample content output.txt/Screen output Scheduling Method: First Come First Served Process Waiting Times: P1: 0ms P2: 4ms P3: 8 ms P4: 10ms P5: 13 ms Average Waiting Time: 7ms Scheduling Method: Shortest Job First - Non-Preemptive Process Waiting Times: P1: 0ms P2: 10ms P3: 4ms P4: 13ms P5: 5ms Average Waiting Time: 6.4ms Scheduling Method: Shortest Job First -Preemptive Process Waiting Times: P1: 6ms P2: 10ms P3: 0ms P4: 13ms P5: 1ms Average Waiting Time: 6ms Scheduling Method: Priority Scheduling -Preemptive Process Waiting Times: P1: 14ms P2: 6ms P3: 0ms P4: 9ms P5: 1ms Average Waiting Time: 6ms

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

Students also viewed these Databases questions