Homework 05: Chapter 05 Questions
Due: Thursday, February 16th by 5:59 PM
Assignment ID: hwk05
Header
Please put the following at the top of a flat text file, hwk05.txt:- Your name
- CSCI 3250
- Hwk05
- Date
Homework Questions
Write the answers to the following questions in hwk05.txt:- Practice Exercise 5.2
- Exercise 5.9
- Exercise 5.13
- For lab4, we'll be writing a CPU scheduler simulator for the following algorithms:
- FCFS
- SJF
- STRF
- Priority
- Preemptive Priority
- Round-robin (time quantum = 2)
- Process ID
- Arrival time
- CPU burst time
- Priority (higher = higher priority)
Submission
Submit hwk05.txt using the handin program. For example, for this homework, type the following in a terminal exactly as it appears:handin hwk05 hwk05.txt
Alternatively, you can submit the assignment from
Hints
- For the CPU scheduler problem, using the process data in processData1.txt, the following processes are assigned to run by the CPU scheduler:
FCFS: 1 2 3 4 5 SJF: 1 2 4 3 5 SRTF: 1 2 3 3 4 1 5 Priority: 1 4 3 5 2 Preemptive Priority: 1 1 3 4 3 1 5 2 Round-robin: 1 2 3 4 5 1 5 1 5 1 5 1 5
Notice that for STRF, process ID 3 is chosen twice in a row.