Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Recommendations & Rules: - The application must be written in CC++ programming language and must be compiled on GNUALinux Operating Systems. - Don't use any

image text in transcribed
image text in transcribed
image text in transcribed
Recommendations \& Rules: - The application must be written in CC++ programming language and must be compiled on GNUALinux Operating Systems. - Don't use any special library for protocols when coding. Write your own functions if it's necessary. Only exemption is data structure functions that given in Data structures lecture. - You should commit changes on github system. Usually at least one time a day you should commit your code on github. - Unless otherwise explicitly specified, all written assignments or code that is submitted is to be entirely the student's own work. Using any code or copying any assignment from others is strictly prohibited without advance prior permission from the instructor. - All students' work is their own. Students who do share their work with others are as responsible for academic dishonesty as the student receiving the material. - Students who encourage others to cheat or plagiarize, or students who are aware of plagiarism or cheating and do not report it are also participating in academically dishonest behavior. - In this case (academically dishonest behavior), students to be punished with no grade. 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:-\$Scpe351 -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. 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 inputixt file 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 yalue) 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. c) Show Result: If user chooses this option, program shows report to user from screen (As described Step 4). d) End Program: If user chooses this option, program show all (implemented) scheduling results on display (As described Step 4) and also write these results to output file that given with "0 option and terminate simulator. e) Appendix section has screen and file outputs. Please create same output for your program. 4. Your program must gather statistics, compute, and report the following information: a) The average waiting time that all jobs spend in the wait queue. b) The waiting time that each job spends in the wait queve. 5. You can get more information for CPU Scheduling methods from your text book (chapter 5). Some Scheduling methods not run in Preemptive mode. So take care about it. Schiculisy Mritud Firs Crime First 5 mot Procrat Waiting Tirre: P1:0 mb P24ms P) 8ms p=10mm pric 11ms Avuraer Wailine Ther: 7rm Procrw Waiting Tirne Pi 0ms P2=10mu PI 4ms p. 1.m PS. 5 as Aceraer Waine Tirve 6.4 ms Procent Waitins Tirse: Pl: 6 im P2: 10 mb p20mm P4: 13=4 PS: 1ms Averiege Waning titur 6m Process Waining Thes: PI:14 ms P2. 6mm Pis. 0 ins PS: 1mm Averiat haiting Tirw: 6m Schedulise Mrutoct Prioniry Scheduling Koo Phengetive Proceni Waling Tirres: Pleo ab p2. 10m PS: 4ms p4:13m P5. 5ms Arreaer Waiting Tink fi a me Process Wairing Times. P1 14mm P2: 9 ms Py 11 ms 14. 11ms pre 12mm Arrage Waitine Times 11.4m

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

Database Systems For Advanced Applications 15th International Conference Dasfaa 2010 International Workshops Gdm Benchmarx Mcis Snsmw Diew Udm Tsukuba Japan April 2010 Revised Selected Papers Lncs 6193

Authors: Masatoshi Yoshikawa ,Xiaofeng Meng ,Takayuki Yumoto ,Qiang Ma ,Lifeng Sun ,Chiemi Watanabe

2010th Edition

3642145884, 978-3642145889

More Books

Students also viewed these Databases questions

Question

How could a worksheet help in preparing financial statements?

Answered: 1 week ago