Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NOTE: -- Plz include all the necessary files and give step by step solution and it's screenshots. Part I: Using C, C++, Java, Python, or..,

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

NOTE: -- Plz include all the necessary files and give step by step solution and it's screenshots.

Part I: Using C, C++, Java, Python, or.., design and implement a simulation program for process management in an operating system, in particular short-term (CPU) scheduling. Be sure your implementation is purely a simulation and nothing more! There is no need to use fork0 or other process-related system calls. All of the following should be simulated. Further, do not use real-time measurements for this project. Simulate elapsed time using a (global?) variable. Be sure to have your program run with absolutely no user interaction whatsoever. Use the defaults noted in the project specifications. Processes A process is a program in execution. For this project, processes are ready to use the CPU or are actively using the CPU. Ignore l/O for now (this greatly simplifies the model). Your system must support m CPUs (start m at 1). Label your CPUs with capital letters starting at A (i.e. A, B C, etc.). Build an easily tunable program that simulates the creation and execution of n processes numbered 1-n (consider these the process IDs). Each process requires a specified amount of CPU time to complete its CPU burst. Specify these times using random numbers in the range 50-400ms. Use a default value of 20 for n (though test with other values, too) Using these initial conditions, your simulation program must simulate each of the following scheduling algorithms (one at a time and with the same initial conditions, each starting at time O!)

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

Students also viewed these Databases questions

Question

What are the six steps involved in preparing a strategic plan?

Answered: 1 week ago

Question

Please convert from MIPS to MACHINE LANGUAGE

Answered: 1 week ago