Hardware Protection and Type of Hardware Protection
In this article, we are going to learn about hardware protection and it’s the type. so first let’s see the type of hardware which is used in a computer system. we know that a computer system contains the hardware like processor, monitor, RAM and many more, and one thing that the operating system ensures that these devices can not directly accessible by the user.
Basically, hardware protection is divided into 3 categories: CPU protection, Memory Protection, and I/O protection. These are explained as following below.
1. CPU Protection:
CPU protection is referred to as we can not give CPU to a process forever, it should be for some limited time otherwise other processes will not get the chance to execute the process. So for that, a timer is used to get over from this situation. which is basically give a certain amount of time a process and after the timer execution a signal will be sent to the process to leave the CPU. hence process will not hold CPU for more time.
2. Memory Protection:
In memory protection, we are talking about that situation when two or more processes are in memory and one process may access the other process memory. and to prevent this situation we are using two registers as:
1. Bare register 2. Limit register
So basically Bare register store the starting address of program and limit register store the size of the process, so when a process wants to access the memory then it is checked that it can access or can not access the memory.
3. I/O Protection:
So when we’re ensuring the I/O protection then some cases will never have occurred in the system as:
- Termination I/O of other process
- View I/O of other process
- Giving priority to a particular process I/O