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.
Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: DSA Self Paced. Become industry ready at a student-friendly price.
- Difference between Hardware and Software
- Interaction of a Program with Hardware
- Hardware architecture (parallel computing)
- Protection in File System
- Difference Between Security and Protection
- Difference between Hardware Interrupt and Software Interrupt
- System Protection in Operating System
- User View Vs Hardware View Vs System View of Operating System
- Refresh type output devices in Computer Graphics
- Function Keys on keyboard
- Sequence Step Algorithm in Operating System
- Program for Best Fit algorithm in Memory Management using Linked List
- Short Note on Gantt Chart
- Thread Models in Operating System
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.