subject

Five jobs P1, ..., P5 arrive at a processor at time 0, 1, 2, 3, 4 and the lengths of their CPU burstsare 9, 1, 3, 1, 5, respectively. Draw the Gantt Chart and calculate the average waiting time and the average response time for the following policies a. SJF (Shortest-Job-First) scheduling policy.
b. SRTF (Shortest-Remaining-Time-First) scheduling policy.
c. P-PS (Preemptive priority ) scheduling policy with priority assignment (3, 2, 1, 4, 3) to (P1, ..., P5), where priority 1 is the highest priority. RR (Round-Robin) scheduling policy with a time quantum of 2.
d. MLFQ scheduling policy with simplification. We ignore priority boost and I/O and the detailed policy is as follows: A new job enters Q1 in Round-Robin (RR). When it gains CPU, job receives 1 time unit; If it does not finish in 1 time unit, it is moved to Q2. At Q2, job is again served in RR and receives 2 time units. If it still does not complete, it is preempted and moved to Q3. Run RR in Q3 with quantum size 4

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:10
Ihave a music player on my phone. i can buy songs, add them to playlists and play them. obviously it would be redundant to store each song in each playlist; each playlist is just a list of pointers to the songs. for this lab you will simulate this behavior. your program will need to have options to: add songs to the system library (you will store the text of the first line of the song, rather than the audio) add playlists add songs to a playlist list playlists play a playlist list all of the songs in the library with a count of how many times each song has been played remove a song from a playlist remove a playlist remove a song from the library (and thus from all playlists that contain it) note that we will not be checking many error cases. in real programming this would be bad, you should usually try to recognize and respond to as many types of errors as you can. in the context of class we are trying to acquaint you with as many concepts as possible, so for the sake of educational efficiency we will not be checking most errors in this lab, you may assume that your user provides correct input. you may add all appropriate error testing if you wish, but we will not be testing for it.
Answers: 2
question
Computers and Technology, 22.06.2019 11:40
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
question
Computers and Technology, 23.06.2019 02:00
Arecipients list has been loaded into a document. which commands should be clicked in order to filter the list so that letters will not be printed for recipients who live in a certain state? mailings tab, start mail merge, select recipients, type new list, then insert only contacts from the desired states mailings tab, rules, select recipients, use existing list, then choose a recipients list that includes only contacts in certain states mailings tab, select recipients, use existing list, rules, fill in, then type in certain states mailings tab, rules, skip record select “state” under field name, then type in the state name under “equal to”
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing electricity that has a frequency of 60 hz. student a says that this type of electricity is referred to as ac. student b says that in this type of electricity, the electrons flow in only one direction. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
You know the right answer?
Five jobs P1, ..., P5 arrive at a processor at time 0, 1, 2, 3, 4 and the lengths of their CPU burst...
Questions
question
Biology, 17.12.2020 21:40
question
Biology, 17.12.2020 21:40
question
Mathematics, 17.12.2020 21:40
question
Mathematics, 17.12.2020 21:40
question
Mathematics, 17.12.2020 21:40
question
Mathematics, 17.12.2020 21:40
question
Mathematics, 17.12.2020 21:40
question
Mathematics, 17.12.2020 21:40
Questions on the website: 13722363