Subject: Computer Awareness & Environment Chapter: Operating Systems Topic: Functions of OS, types of operating systems, Windows and Linux, process and memory management, file systems, and commands
An operating system (OS) is the most important system software that acts as an interface between the user and the computer hardware. It manages all the hardware resources, runs application programs, handles the memory, controls input and output devices, and provides the environment in which all other software works. Without an operating system, a computer cannot start up or run any program, because the operating system is the first software loaded into memory when the computer is switched on, through a process called booting. In the RRB JE CBT-1 examination, questions on the operating system are guaranteed, and they usually test the functions of the OS, the popular operating systems, the difference between multi-user and multi-tasking systems, and the basic commands used in Windows and Linux.
The operating system performs several essential functions. It manages the processor by deciding which program gets the CPU at any moment, a task called process management; it manages the memory by allocating space to programs and keeping track of used and free memory, called memory management; it manages files by providing a structure for storing, naming and retrieving data on the disk, called file management; it manages the input and output devices by controlling their operation; and it provides the user interface through which the user communicates with the computer, either through text commands or through a graphical interface with icons and windows.
In this chapter we will study the functions of the operating system, the different types of operating systems such as single-user, multi-user, multi-tasking, real-time, batch and distributed systems, the most popular operating systems including MS-DOS, Windows, Linux, UNIX and Android, the difference between a command line interface and a graphical user interface, and some basic commands of Windows and Linux. We will also learn about the booting process and the term for the small program that manages the start-up, which is the bootstrap loader.
Operating systems can be classified on the basis of the number of users and the number of tasks they can handle. A single-user single-tasking operating system allows only one user to run only one program at a time, and MS-DOS is a classic example. A single-user multi-tasking operating system allows one user to run several programs at the same time, and Windows and macOS are examples. A multi-user operating system allows many users to use the same computer at the same time, sharing its resources, and UNIX, Linux and mainframe operating systems are examples. A multi-processing operating system uses two or more CPUs to run multiple programs at the same time.
On the basis of the mode of processing, operating systems are classified into batch processing systems, in which jobs of a similar type are grouped together and processed one after another without any user interaction; time-sharing systems, in which the CPU time is divided among many users in small slices so that each user feels the computer is dedicated to him or her; real-time operating systems, which process data immediately and give results within a fixed time, and are used in aircraft control, railway signal control and process control in industry; and distributed operating systems, in which many computers connected by a network work together as if they were one computer. A network operating system allows computers on a network to share files, printers and other resources.
The most popular operating systems are MS-DOS, which was developed by Microsoft and is a single-user, single-tasking, command-driven operating system; Windows, which is a graphical user interface based, single-user multi-tasking operating system developed by Microsoft; UNIX, which is a powerful multi-user, multi-tasking operating system developed at Bell Laboratories by Ken Thompson and Dennis Ritchie; Linux, which is a free open source multi-user operating system developed by Linus Torvalds; and Android, which is a mobile operating system used on smartphones and tablets, developed by Google. The graphical user interface (GUI) uses icons, menus and windows, while the command line interface (CLI) requires the user to type text commands.
The interface of an operating system can be compared to the difference between pointing and typing. A GUI is user-friendly and can be operated by a person with little training, because the user clicks on icons and menus, whereas a CLI is faster and uses less memory but requires the user to remember the commands. In the examination, candidates are often asked to identify which operating system is command-driven, which is open source, which is used in mainframes, and which is the most common for smartphones. It is also important to remember that Windows is owned by Microsoft, that Android is owned by Google, and that iOS is the operating system of the Apple iPhone.
When a computer is switched on, the operating system is loaded into memory from the hard disk by a small program called the bootstrap loader, and this process of starting the computer is called booting. A cold boot happens when the computer is switched on from a completely powered-off state, while a warm boot happens when the computer is restarted without switching off the power, such as when we press the reset button. The boot process begins with the power-on self-test (POST), which checks the hardware, and then the bootstrap loader loads the operating system into memory.
The operating system manages the running of programs through process management, in which each running program is called a process and the OS schedules the CPU time among the processes. Memory management keeps track of every byte of memory, allocates space to programs as needed, and reclaims the space when a program finishes. The file system organises data into files and folders, and a file name in Windows usually has two parts, the name and the extension separated by a dot, such as report.docx, where docx indicates a Word document. In the command line, some basic commands are asked in the examination, for example DIR to list files in Windows, MD to make a directory, DEL to delete files, and CD to change directory.
| Type | Meaning | Example |
|---|---|---|
| Single-user single-tasking | One user, one program at a time | MS-DOS |
| Single-user multi-tasking | One user, many programs at once | Windows, macOS |
| Multi-user | Many users share one computer | UNIX, Linux |
| Real-time | Instant processing, fixed time response | Aircraft, railway signals |
| Batch | Similar jobs processed together | Payroll, billing |
| OS | Developer | Feature |
|---|---|---|
| MS-DOS | Microsoft | Single-user, command-driven |
| Windows | Microsoft | GUI, single-user multi-tasking |
| UNIX | Bell Labs | Multi-user, multi-tasking |
| Linux | Linus Torvalds | Free, open source |
| Android | Mobile operating system |
flowchart TD
A[Operating System] --> B[Functions]
A --> C[Types]
A --> D[Popular OS]
A --> E[Booting]
B --> B1[Process Management]
B --> B2[Memory Management]
B --> B3[File Management]
B --> B4[Device Management]
B --> B5[User Interface]
C --> C1[Single-user]
C --> C2[Multi-user]
C --> C3[Multi-tasking]
C --> C4[Real-time]
C --> C5[Batch]
D --> D1[MS-DOS]
D --> D2[Windows]
D --> D3[UNIX]
D --> D4[Linux]
D --> D5[Android]
E --> E1[Bootstrap Loader]
E --> E2[Cold Boot]
E --> E3[Warm Boot]
The following diagrams show the role of the operating system and the process of booting.
The operating system is the master software that makes the computer usable, and it is one of the most important topics in the computer awareness section of the RRB JE CBT-1 examination. In this chapter we have studied the functions of the operating system, the classification of operating systems into single-user, multi-user, real-time, batch, time-sharing and distributed types, the major operating systems such as MS-DOS, Windows, UNIX, Linux and Android, the difference between the graphical and command line interfaces, and the booting process with the bootstrap loader. By memorising the developers, the classification table and the basic commands, and by understanding the concept of process and memory management, a candidate can answer the operating system questions with confidence. This chapter also connects directly with the hardware chapter, because the operating system is the software layer that controls all the hardware studied earlier.