In: Computer Science
1)
A process control block
|
determines which process is to be executed next |
||
|
is an example of a process queue. |
||
|
Stores the address of the next instruction to be processed by a different process |
||
|
Includes information on the process's state |
2)
Consider a disk queue holding requests to the following cylinders in the list order: 98, 183, 57, 122, 200, 124, 65, 67. Using the SSTF scheduling algorithm, what is the order that the requests are serviced assuming the disk head is at cylinder 65?
|
65, 57, 98, 67, 122, 124, 183, 200 |
||
|
65, 67, 57, 98, 122, 124, 200, 183 |
||
|
65, 67, 57, 98,122, 124, 183, 200 |
||
|
65, 200, 183, 124, 122, 67, 98, 57 |
3)
Which of the following dynamic storage-allocation algorithm in use if selecting 50KB hole in meeting the sequence of 50KB, 100KB, 270KB, and 40KB for a 20KB process?
|
First fit |
||
|
Best fit |
||
|
Worst fit |
||
|
None of the above |
Hello,
I am happy to help with these question .
1) The process control block
Answer) includes information on the process's state .
This is because when context switching takes place in between the processes , each process has its own process control block and this is used to store the state of the process .
2) in this part we need to identify the SSTF way to disk scheduling .
In SSTF (shortest seek time first) we give service on the basis of the shortest seek time .
In this question, the head is at 65 .
now next service will be to shortest seek time and that is to 67.
now it service will be given to 57.
now to 98.
So the answer will be:
Answer:65,67,57,98,122,124,183,200.
For an explanation i have attached an image .

3)Which of the following dynamic storage-allocation algorithm in use if selecting 50KB hole in meeting the sequence of 50KB, 100KB, 270KB, and 40KB for a 20KB process?
Answer : FIRST FIRST.
This is because we are allocating first hole available that can contain the process.
Thank you.
I hope i was able to help you with this question . If you any queries please be comfortable to ask in the comments i will be glad to help.
:).