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.
- 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.
- 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 protecting 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.
- I/O Protection:
So when we 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
We know that when an application process wants to access any I/O device it should be done through system call so that the Operating system will monitor the task.
- Difference between Hardware and Software
- Interaction of a Program with Hardware
- Hardware architecture (parallel computing)
- System Protection in Operating System
- Refresh type output devices in Computer Graphics
- Stack Implementation in Operating System uses by Processor
- Difference between Operating System and Kernel
- Inode in Operating System
- Booting and Dual Booting of Operating System
- Difference between Impact and Non-Impact Printers
- Implementation of Non-Preemptive Shortest Job First using Priority Queue
- Difference between Asymmetric and Symmetric Multiprocessing
- LOOK Disk Scheduling Algorithm
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.