Error Handling
Q.1: How segmentation fault is handled by operating system?
Answer:
Segmentation fault is defined as a type of fault where program tries to access or use the memory for which it is not allowed. For handling segmentation fault the operating system logs the error by terminating the program.
Q.2: Does user level program handles their errors independently as that of operating system?
Answer:
User level programs can handle their errors through mechanisms such as exception handling and error checking functions.
Q.3: Does operating system improves security through error handling?
Answer:
Yes, operating system improves security through error handling by handling the exceptions and errors, protect against unauthorized access and denial of service attacks.
Q.4: Which types of errors can even cause to computer system crash?
Answer:
Permanent failures can lead to crash of the system as majorly problem occurs with hardware or software components and they cannot be recovered easily.
Error Handling in Operating System
An operating system is defined as an interface between the computer system and its users. Once the operating system is loaded into the computer system through the boot program it is responsible for managing all the applications on the device. The operating system is a significant component of the system software in a computer system.
As the operating system is a collection of various software there may be some errors that can cause the system to have some severe fault or severe stoppage of any service which can lead to false results or some defective results to handle this error handling should be properly applied. The below article covers in detail the error, its types, the concept of error handling, and their needs.