Question

What happens When program requests hardware related service such as accessing hard disk drive

What happens When program requests hardware related service such as accessing hard disk drive

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

Whenever a program requests a hard disk drive or any other hardware, an interrupt signal is sent to the processor.

The processor then prepares itself to give the control of the hardware to the requesting program.

As a result, the execution of the current program using the hard disk drive is paused.

The contents of the program counter (the register which keeps track of the currently executing step of the program) is written on to a stack. This will help to start the current program again from where it had stopped.

Now, the requesting program will start execution, hence taking the control of the hard disk drive.

The program counter will be loaded with the address of the new program.

Once, the new program is completed, the stack will be popped, the stack content will be loaded to the program counter and the previous program will start again.

Add a comment
Know the answer?
Add Answer to:
What happens When program requests hardware related service such as accessing hard disk drive
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