OS Project
Principles of Operating System Project Spring 2024 OS Simulator A. Project Objectives: This programming project is to simulate the CPU scheduling algorithms, banker’s algorithm, page replacement algorithms discussed in the class. You will write a program to implement a simulator with different algorithms. The program outputs a menu to the user, where the user selects his/her choice from the menu. In case of CPU scheduling algorithms, the simulator selects a task to run from ready queue based on the scheduling algorithm. Since the project intends to simulate a CPU scheduler, so it does not require any actual process creation or execution. When a task is scheduled, the simulator will simply print out what task is selected to run at a time. It outputs the way similar to Gantt chart style. Other choices will be treated as discussed in the class. The user can run any algorithm B. Project Descriptions: The selected scheduling algorithms to implement in this project are: 1. First Come First Serve (FCFS) 2. Shortest job first 2.1 None preemptive shortest job first 2.2 Preemptive shortest job first 3. Round Robin 4. Bankers Algorithm 5. First in First out FIFO 6. Least recent used 7. Optimal 8. Exit C. Requirements: I. The project requires to simulate FCFS, SJF (None preemptive, preemptive), and the RR, scheduling for given tasks by reading: 1. The number of processes. 2. The arrival time for each process, indicate 0 for not given arrival time. 3. The Burst time for each process. You are required compute: 1. 2. 3. 4. 5. The average waiting time for each process. The average waiting time. The turnaround time for each process. The average turnaround time. Draw the Gantt Chart Please note that 1, 4 needs to be tabulated (Table format) II. The project requires to simulate the Bankers algorithm by reading 1. 2. 3. 4. 5. 6. The number of processes (n) The number of resources (m) The number of instances for each resource The Allocation Matrix (row by row) The Max Matrix (row by row) The available vector You are required compute: 1. The Need Matrix 2. In order to enter the safe state, print the sequence of processes which satisfy the safety criteria. 3. Ask the user if a request can be granted or not. If yes, show the changes in the matrices if any. III. The project requires to simulate the page replacement algorithm either, FIFO, Optimal, or LRU by reading 1. The size of the frame. 2. The reference strings. You are required compute: 1. Number of page faults 2. Both hit and miss ratio D. Submission: You need to submit a group report showing all the requirements in terms of: 1. All source code file(s). 2. A readme file that briefly describe how to compile/run the program. Furthermore, it includes sample of outputs. 3. Screen shot of the output of each requirement needs to be included in the report. 4. Due date: Wednesday May 1st 2024. (Demo Presentation) 5. Provide a hard copy of the report on the presentation day. 6. Email your files to [email protected] with subject “OS_Project”, but no zip files E. Grading Policy: 1. 2. 3. 4. If you do not have the files specified above, it will result in a score of zero. If the program cannot be compiled and run, it will result in a score of zero Cheating will result in a score of zero for all the students involved. Presentation for your project is a must in the class. Final Project Rubric Group No. Coding and Results 5 Presentation 3 Report 2 VERY IMPORTANT: Every student must be involved in all above phases. Report, presentation and video link to be submitted NO LATER than Wednesday Mat 1st 2024. Good luck
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.