Functions & Services of an OS

  1. Handling errors: When an error occurs during the execution of a program, or when a hardware error is detected, the OS is expected to handle the error, i.e., to find a suitable solution that will allow proper continuation of the execution of the device's tasks. The operating system might employ various methods that include error prevention, detection, and recovery algorithms and backup or redundancy solutions, in which data is stored in more than one copy/location. Examples of error prevention and detection algorithms are discussed in the "Deadlock" topic of the course.
  2. Security & Protection: As the end of the previous topic explained, it is the responsibility of the operating system to prevent the overwriting or corruption of data from either intentional or unintentional actions. We'll dive into more details in the "Introduction to Protection and Security" topic.
  3. Accounting: To operate smoothly, the OS keeps a record of the current system performance and the availability of resources. This information could help the developers of the operating system learn how to make improvements to its performance.