Operating System

This paper takes a further step to the more advanced functions of operating systems, the kind of operating system applied in different setups, and how these systems can manage and control resources effectively. We are going to also examine the working of OSes in the background so that you will have greater understanding as to both the theoretical and practical sides.

What is an operating system?

1. Definition of OS:

An operating system (OS) is complicated system software that manages hardware resources of a computer.

2. Role of OS:

The OS enables users to run computer programs and communicate with the computer.

3. Resource Management:

The OS controls the system resources, such as:

  • Memory
  • Processing time (CPU)
  • Input/output devices
  • File storage

4. Mediating Role:

The OS is an intermediary between the computer hardware and a user.

5. Simplifying the Process:

The OS simplifies the use of the computer, making it easier and more efficient.

Major Operating System functions

Whereas Class 9 students were taught how to use the simplest functions of an OS, Class 10 students are taught the more advanced functions of the OS, where they are taught more about the performance and optimisation of the resources.

1. High-Level Process Management

  • Multitasking: They do this through process scheduling algorithms which make optimal use of the CPU.
  • Concurrency and parallelism: processes may be run concurrently (simultaneous execution times) or in parallel (using many cores to execute processes simultaneously).
  • Example: A multi-core processor has a round-robin or priority-based scheduling system used by the OS to allocate work to cores available to it.

2. Memory Management (Advanced)

  • Dynamic Memory Allocation: Allocation of memory is done dynamically in operating systems such as Windows and Linux, which allocate memory to running processes. The OS reclaims a process when it is no longer required by the memory.
  • Virtual Memory: Virtual memory enables the computer to utilise the hard disc space as if it were that of RAM, giving the illusion of unlimited memory. It allows one to operate large programs or multitask when the physical RAM has been filled up.
  • Example: When a user opens numerous applications, then the OS will offload to the hard disc some of the less frequently used sections, making use of a portion as paging space.

3. Advanced Storage Management and File System

  • File Allocation Methods: The OS defines the way data is set on discs. The most common approaches are contiguous allocation, linked allocation and indexed allocation, which have their pros with respect to various applications.
  • File Access Control: NTFS (Windows) file systems or ext4 (Linux) file systems enable the operating system to govern read/write permissions and provide security and control access by multiple users or processes.
  • Example: As one stores a file, the operating system will determine where it is to be stored on the disc and how to access it in case it is needed, making it fast to access.

4. Security Management

  • User Authentication: OSes offer multi-factor authentication (MFA) as an improved security measure. This may involve biometric access (fingerprints or face recognition), passwords or PINs.
  • Encryption: Complex operating systems such as macOS and Windows provide inbuilt encryption options (e.g., BitLocker or FileVault) to store data, particularly in a mobile setting where theft can be an issue.
  • Note: In a corporate network, the OS will make sure that the various users having different access privileges can only access files and programs that they are supposed to use.

5. Resource and Device Management

  • Interrupt Handling: Interrupts are signals sent by hardware or software and are meant to be attended to instantly. The OS gives these interrupts the highest priority and makes sure that they are executed in the proper order.
  • Plug and Play: Modern operating systems detect and configure the new devices automatically (when connected (e.g., USB drive, printer)), and thus the process of connecting the new device is simplified.
  • Example: The OS controls various devices in a server environment, including hard drives, printers, and network interfaces, so that they will not come into conflict.

Types of Operating Systems

Class 10 students should be aware of the various kinds of OS in the various computing environments. We shall go a little deeper into their applications and their main distinctions:

Types of OS

1. Single-User Operating Systems.

Each of these OSes is a single-user operating system.

Examples:

  • Windows 10: Personal computer usage.
  • macOS: operating on Apple desktops and laptops.
  • Linux (desktop distributions): Ubuntu, Fedora.

2. Multi-User Operating System.

In a networked environment, multiple users can use the system at a time, and these OSes enable this interaction between users.

Examples:

  • UNIX/Linux (server editions): It is deployed in large systems and cloud servers as well as web hosting.
  • Windows Server: It is applied in the corporate world to operate and control resources in the network.

3. Real-Time Operating Systems (RTOS)

A definition of RTOS is a system designed for cases where timing is important. It makes sure that the tasks are handled within a tight time constraint.

Examples:

  • VxWorks: Embedded systems such as medical equipment and satellites.
  • FreeRTOS: Industrial applications, robots.

4. Mobile Operating Systems

Mobile OSes are created with touchscreen gadgets such as smartphones and tablets in mind.

Examples:

  • Android: This is very popular in smartphones and tablets.
  • iOS: Operated on Apple portals.
  • HarmonyOS: Huawei developed it to be used in smartphones and IoT devices.

Higher OS Concepts

The students with Class 10 should also consider such sophisticated concepts as virtualisation and containerisation. ion:

  • Virtualisation: The OS is able to form virtual machines (VMs), which behave as individual physical machines. This is useful in maximising the use of hardware resources.
  • Demo: Linux can be virtualised and executed on a Windows computer by a programmer.
  • Containerisation: Containerisation technologies such as Docker enable application developers to bundle up applications and dependencies into containers. Containers are lightweight and isolated as well as portable.
  • Example: When a web application is configured in a Docker container, it will be guaranteed to be run in a similar fashion in various environments (developer's machine, production server, etc.).

Security, Maintenance and Troubleshooting

1. Patch Management:

The operating systems are regularly patched and updated to address bugs and enhance security as well as increase functionality.

Example: Windows Update and Linux package managers can be used to make sure that the systems are current and secure.

2. Backup and Recovery:

OSes have built-in systems to support system file and user data backup. Backup: This helps in ensuring that your data is not lost in case of failure, and recovery tools assist in restoring the system back to a functioning state.

Example: Time Machine functionality of macOS generates automatic backups.

QUIZ FOR OPERATING SYSTEMS

1. A student says:
The applications can be executed on a computer without an operating system.

Why do you think this assertion is false?

A) Applications needs an interface to contact with hardware via the OS.
B) Hardware devices may only execute system software.
C) Applications are saved in the OS only.
D) Programs cannot be executed by the CPU without an OS licence.

Answer: A) Applications needs an interface to contact with hardware via the OS.

2. A computer has 8GB RAM but it is currently running multiple large applications simultaneously. The operating system loads up a portion of the hard disk to temporarily save data on programs which are not in use.

What OS feature is in operation?

A) Dynamic scheduling
B) Virtual memory
C) Plug and Play
D) Interrupt handling

Answer: B) Virtual memory

3. Linux can be installed as a server enabling multiple users to log on to it and execute various programs at the same time without affecting each other.

This is mostly possible due to which OS feature?

A) Multitasking and process-scheduling.
B) BIOS configuration
C) Disk defragmentation
D) Hardware caching

Answer: A) Multitasking and process-scheduling.

4. A printer abruptly fails when multiple programs are being run. The operating system automatically suspends some activities and goes to serve the printer signal.

How does the OS react so fast?

A) Paging
B) Interrupt handling
C) Virtualisation
D) Encryption

Answer: B) Interrupt handling

5. A programmer will install Linux, inside a virtual machine, on the windows based computer so that the software can be tested without interfering with the actual system.

What technology will support this arrangement?

A) Containerisation
B) Virtualisation
C) Real-time processing
D) File indexing

Answer: B) Virtualisation

6. What scenario better describes the application of a Real-Time Operating System (RTOS)?

A) Editing photos on a laptop
B) Home computer file management.
C) Management of a satellite navigation system timing.
D) Visiting websites using a smartphone.

Answer: C) Management of a satellite navigation system timing.

7. Within a company network, it can only be possible to open specific folders based on the job role of the employee.
What OS functionality provides this limitation?

A) File access control
B) Disk formatting
C) Memory paging
D) Device drivers

Answer: A) File access control

8. The user makes connection to a computer which has a modern computer and the USB printer works nearly instantly and does not require that the user installs the driver manually.

What feature of an operating system makes this possible?

A) Multitasking
B) Plug and Play
C) Process scheduling
D) Virtual memory

Answer: B) Plug and Play

9. A program specialist who works on a mobile application tries it in a Docker container in order to have it being similar on other computers as well as servers.

What is the great benefit of containerisation in this case?

A) It raises the RAM of the system.
B) It ensures the program is run across environments.
C) It overwrites the operating system.
D) It transforms the software into hardware.

Answer: B) It ensures the program is run across environments.

10. What is the correct answer to the following statement? What is the difference between concurrency and parallelism in operating systems?

A) Concurrency is through supporting multiple tasks simultaneously on the same core.
B) Parallelism is the process of running several CPU cores at the same time.
C) Parallelism and Concurrency are synonymous.
D) Parallelism is only applicable with mobile operating systems.

Answer: B) Parallelism is the process of running several CPU cores at the same time.