Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Goals Understanding the structure of the PCB (Process Control Block) Understanding the working of Scheduling algorithms Imagine that your computer system has crashed, but a

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Goals Understanding the structure of the PCB (Process Control Block) Understanding the working of Scheduling algorithms Imagine that your computer system has crashed, but a core dump was actually done before the computer was forced to shut down completely. The list of running processes (at the time of the crash) was saved in a file called "list of _processes.txt". Your program gets to play CPu scheduler (in other words, you as the designer of the Operating System, get to play the role of the CPU scheduler) You will first choose a time slice/time quantum. In this project, you will be implementing the ROUND ROBIN Scheduling Algorithm. A time slice of 4 units is recommended. You must write C code to open the saved file, run the processes until they all finish. Running process 31 for a time slice of 4 time units, for example, means that process 31 prints out the fir ,000 prime numbers. That was based on the assumption that process 31 gets to go first. If process 39 gets to go next, for the next 4 time units,it would print the next 4,000 prime numbers h process finishes, print a message on the screen saying "process finished" Note: 1) Details of what spcific aspects of a process were stored in the file, were discussed in class. Refer to your lecture notes 2) Details of managing files, structs, arrays, strings, etc. were covered in class. In other words, you will need to know the material from C programming covered in CSCI 180/281, that was also reviewed in your CSCI 415 lecture. 3) Sample data (sample contents of the saved 'recovery' file): 31 Ready 504000 39 Ready 504008 3 12 7 Ready 504100 45 Ready 504200 20 4) There is an infinite number of prime numbers, so we will never run out of prime numbers 5) Each process must write out the prime numbers to the screen as well as to a separate output file

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions