Question

In a virtual memory system, the I/O operations executed by a user program can be of...

In a virtual memory system, the I/O operations executed by a user program can be of two different types. Name them and explain when each one of them occurs.

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

Ans) In a virtual memory system, there is a dual-mode operation and there are two separate modes:- monitor mode and user mode.

Now I/O operations are executed as I/O is protected by making all I/O instructions privileged. In monitor mode, the CPU can use all instructions and access all areas of memory.The CPU automatically switches to monitor mode whenever an interrupt or trap occurs. So, the OS code is run in monitor mode.

And while running in user mode, the CPU cannot execute them; thus, user code, which runs in user mode, cannot execute them. User code requests I/O by making appropriate system calls. After checking the request, the OS code, which is running in monitor mode, can actually perform the I/O using the privileged instructions.

Add a comment
Know the answer?
Add Answer to:
In a virtual memory system, the I/O operations executed by a user program can be of...
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
ADVERTISEMENT