Question

1. Given the process state diagram, explain what might cause a process to change from Executing...

1. Given the process state diagram, explain what might cause a process to change from Executing to Ready via an interruption?

2. Given the process state diagram, explain what the difference between waiting for a resource vx. waiting for I/O is?

3. What is the context switch?

4. Write an equation to represent the total time taken for a process to complete, including process time and I/O time?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer 1:

It Possible in three conditions

a. When Time quantum expires then process goes from running to ready state.

b. When a higher priority process comes then the process (Having low priority) which is currently running changes its state from running to ready.

c. Process is waiting for resource which is currently held by another process.

Answer 2:

Waiting for Resource means Process waiting for external resource which is held by another process and waiting for I/O means Process is completing its input or output operation.

Answer 3:

Storing the context or state of a process so that it can be reloaded when required and execution can be resumed from the same point as earlier is called as Context Switch. This is a feature of a multitasking operating system and allows a single CPU to be shared by multiple processes.

Answer 4:

Equation for Process completion

PCT=Proc(T)+I/O(T)

Here, PCT is Process completion time

Proc(T) Process time.(Includes Context switching time and Waiting time)

I/O(T) Total Input output time.

Add a comment
Know the answer?
Add Answer to:
1. Given the process state diagram, explain what might cause a process to change from Executing...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT