The Wayback Machine - https://web.archive.org/web/20241119125038/https://www.geeksforgeeks.org/introduction-of-operating-system-set-1/
Open In App

Introduction of Operating System – Set 1

Last Updated : 30 Aug, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

An operating system acts as an intermediary between the user of a computer and computer hardware. In short its an interface between computer hardware and user. The purpose of an operating system is to provide an environment in which a user can execute programs conveniently and efficiently.

An operating system is software that manages computer hardware. The hardware must provide appropriate mechanisms to ensure the correct operation of the computer system and to prevent user programs from interfering with the proper operation of the system. A more common definition is that the operating system is the one program running at all times on the computer (usually called the kernel), with all else being application programs.

Concerned with the assignment of resources among programs e.g. memory, processors, devices and informationoproutines. Similarly, the operating system has programs to carry out these tasks as with a traffic controller, scheduler, memory management module I/O program and file system.

History of Operating System

The operating system has been evolving through the years. The following table shows the history of OS.

Generation Year Electronic device used Types of OS Devices
First 1945-55 Vacuum Tubes Plug Boards
Second 1955-65 Transistors Batch Systems
Third 1965-80 Integrated Circuits(IC) Multiprogramming
Fourth Since 1980 Large Scale Integration PC

Characteristics of Operating Systems

Let us now discuss some of the important characteristic features of operating systems:

  • Device Management: The operating system keeps track of all the devices. So, it is also called the Input/Output controller that decides which process gets the device, when, and for how much time.
  • File Management: It allocates and de-allocates the resources and also decides who gets the resource.
  • Job Accounting: It keeps track of time and resources used by various jobs or users.
  • Error-detecting Aids: These contain methods that include the production of dumps, traces, error messages, and other debugging and error-detecting methods.
  • Memory Management: It is responsible for managing the primary memory of a computer, including what part of it are in use by whom also check how much amount free or used and allocate process
  • Processor Management: It allocates the processor to a process and then de-allocates the processor when it is no longer required or the job is done.
  • Control on System Performance: It records the delays between the request for a service and the system.
  • Security: It prevents unauthorized access to programs and data using passwords or some kind of protection technique.
  • Convenience: An OS makes a computer more convenient to use.
  • Efficiency: An OS allows the computer system resources to be used efficiently.
  • Ability to Evolve: An OS should be constructed in such a way as to permit the effective development, testing, and introduction of new system functions at the same time without interfering with service.
  • Throughput: An OS should be constructed so that It can give maximum throughput (Number of tasks per unit time).

To gain a deeper understanding of operating systems and other foundational computer science concepts, explore the GeeksforGeeks GATE CS Self-Paced course . This course provides comprehensive coverage of core subjects, helping you build a strong foundation for competitive exams and a successful career in tech. Take the next step in your learning journey with expert guidance and structured content.

List of common Operating Systems

There are multiple types of operating systems each having its own unique features:

Windows OS

  • Developer : Microsoft
  • Key Features : User-friendly interface, software compatibility, hardware support, Strong gaming support.
  • Advantages : Easy to use for most users, Broad support from third-party applications ,Frequent updates and support.
  • Typical Use Cases : Personal computing, Business environment, Gaming.

macOS

  • Developer : Apple.
  • Key Features : Sleek, intuitive user interface, Strong integration with other Apple products, Robust security features, High performance and stability.
  • Advantages : Optimized for Apple hardware, Seamless experience across Apple ecosystem, Superior graphics and multimedia capabilities.
  • Typical Use Cases : Creative industries (design, video editing, music production), Personal computing, Professional environments.

Linux

  • Developer : Community-driven (various distributions).
  • Key Features : Open-source and highly customizable, Robust security and stability, Lightweight and can run on older hardware, Large selection of distributions (e.g., Ubuntu, Fedora, Debian).
  • Advantages : Free to use and distribute, Strong community support, Suitable for servers and development environments.
  • Typical Use Cases : Servers and data centers, Development and programming, Personal computing for tech enthusiasts.

Unix

  • Developer: Originally AT&T Bell Labs, various commercial and open-source versions available
  • Key Features: Multiuser and multitasking capabilities, Strong security and stability, Powerful command-line interface, Portability across different hardware platforms
  • Advantages: Reliable and robust performance, Suitable for high-performance computing and servers, Extensive support for networking
  • Typical Use Cases: Servers and workstations, Development environments, Research and academic settings

Functionalities of Operating System

  • Resource Management: When parallel accessing happens in the OS means when multiple users are accessing the system the OS works as Resource Manager, Its responsibility is to provide hardware to the user. It decreases the load in the system.
  • Process Management: It includes various tasks like scheduling and termination of the process. It is done with the help of CPU Scheduling algorithms .
  • Storage Management: The file system mechanism used for the management of the storage. NIFS , CIFS , CFS , NFS , etc. are some file systems. All the data is stored in various tracks of Hard disks that are all managed by the storage manager. It included Hard Disk .
  • Memory Management: Refers to the management of primary memory. The operating system has to keep track of how much memory has been used and by whom. It has to decide which process needs memory space and how much. OS also has to allocate and deallocate the memory space.
  • Security/Privacy Management: Privacy is also provided by the Operating system using passwords so that unauthorized applications can’t access programs or data. For example, Windows uses Kerberos authentication to prevent unauthorized access to data.

The process operating system as User Interface:

  1. User
  2. System and application programs
  3. Operating system
  4. Hardware

Every general-purpose computer consists of hardware, an operating system(s), system programs, and application programs. The hardware consists of memory, CPU, ALU, I/O devices, peripheral devices, and storage devices. The system program consists of compilers, loaders, editors, OS, etc.

Conceptual View of Computer System

Conceptual View of Computer System

Every computer must have an operating system to run other programs. The operating system coordinates the use of the hardware among the various system programs and application programs for various users. It simply provides an environment within which other programs can do useful work.

An OS is a package of some programs that runs on a computer machine, allowing it to perform efficiently. It manages the simple tasks of recognizing input from the keyboard, managing files and directories on disk, displaying output on the screen, and controlling peripheral devices.

Layered Design of Operating System

OS

Fig. Layered OS

The extended machine provides operations like context save, dispatching, swapping, and I/O initiation. The operating system layer is located on top of the extended machine layer. This arrangement considerably simplifies the coding and testing of OS modules by separating the algorithm of a function from the implementation of its primitive operations. It is now easier to test, debug, and modify an OS module than in a monolithic OS. We say that the lower layer provides an abstraction that is the extended machine. We call the operating system layer the top layer of the OS.

Purposes and Tasks of Operating Systems

Several tasks are performed by the Operating Systems and it also helps in serving a lot of purposes which are mentioned below. We will see how Operating System helps us in serving in a better way with the help of the task performed by it.

Purposes of an Operating System

  • It controls the allocation and use of the computing System’s resources among the various user and tasks.
  • It provides an interface between the computer hardware and the programmer that simplifies and makes it feasible for coding and debugging of application programs.

Tasks of an Operating System

  1. Provides the facilities to create and modify programs and data files using an editor.
  2. Access to the compiler for translating the user program from high-level language to machine language.
  3. Provide a loader program to move the compiled program code to the computer’s memory for execution.
  4. Provide routines that handle the details of I/O programming.

I/O System Management

The module that keeps track of the status of devices is called the I/O traffic controller. Each I/O device has a device handler that resides in a separate process associated with that device.
The I/O subsystem consists of

  • A memory Management component that includes buffering caching and spooling.
  • A general device driver interface.

Drivers for Specific Hardware Devices

Below mentioned are the drivers which are required for a specific Hardware Device. Here we discussed Assemblers, compilers, and interpreters, loaders.

Assembler

The input to an assembler is an assembly language program. The output is an object program plus information that enables the loader to prepare the object program for execution. At one time, the computer programmer had at his disposal a basic machine that interpreted, through hardware, certain fundamental instructions. He would program this computer by writing a series of ones and Zeros (Machine language) and placing them into the memory of the machine. Examples of assembly languages include

Compiler and Interpreter

The High-level languages – examples are C, C++, Java, Python, etc (around 300+ famous high-level languages) are processed by compilers and interpreters . A compiler is a program that accepts a source program in a “high-level language “and produces machine code in one go. Some of the compiled languages are FORTRAN, COBOL, C, C++, Rust, and Go. An interpreter is a program that does the same thing but converts high-level code to machine code line-by-line and not all at once. Examples of interpreted languages are

Loader

A Loader is a routine that loads an object program and prepares it for execution. There are various loading schemes: absolute, relocating, and direct-linking. In general, the loader must load, relocate and link the object program. The loader is a program that places programs into memory and prepares them for execution. In a simple loading scheme, the assembler outputs the machine language translation of a program on a secondary device and a loader places it in the core. The loader places into memory the machine language version of the user’s program and transfers control to it. Since the loader program is much smaller than the assembler, those make more core available to the user’s program.

Components of an Operating Systems

There are two basic components of an Operating System.

Shell

Shell is the outermost layer of the Operating System and it handles the interaction with the user. The main task of the Shell is the management of interaction between the User and OS. Shell provides better communication with the user and the Operating System Shell does it by giving proper input to the user it also interprets input for the OS and handles the output from the OS. It works as a way of communication between the User and the OS.

Kernel

The kernel is one of the components of the Operating System which works as a core component. The rest of the components depends on Kernel for the supply of the important services that are provided by the Operating System. The kernel is the primary interface between the Operating system and Hardware.

Functions of Kernel

The following functions are to be performed by the Kernel.

  • It helps in controlling the System Calls.
  • It helps in I/O Management.
  • It helps in the management of applications, memory, etc.

Types of Kernel

There are four types of Kernel that are mentioned below.

For more, refer to Kernel in Operating System .

Difference Between 32-Bit and 64-Bit Operating Systems

32-Bit Operating System 64-Bit Operating System
32-Bit OS is required for running of 32-Bit Processors, as they are not capable of running on 64-bit processors. 64-Bit Processors can run on any of the Operating Systems, like 32-Bit OS or 64-Bit OS.
32-Bit OS gives a low efficient performance. 64-Bit Operating System provides highly efficient Performance.
Less amount of data is managed in 32-Bit Operating System as compared to 64-Bit Os. A large amount of data can be stored in 64-Bit Operating System.
32-Bit Operating System can address 2^32 bytes of RAM. 64-Bit Operating System can address 2^64 bytes of RAM.

The fundamental goals of operating system are

  • Efficient use: Ensure efficient use of a computer’s resources.
  • User convenience: Provide convenient methods of using a computer system.
  • Non interference: Prevent interference in the activities of its users.

Efficient use

An operating system must ensure efficient use of the fundamental computer system resources of memory, CPU, and I/O devices such as disks and printers. Poor efficiency can result if a program does not use a resource allocated to it. Efficient use of resources can be obtained by monitoring use of resources and performing corrective actions when necessary. However, monitoring use of resources increases the overhead, which lowers efficiency of use. In practice, operating systems that emphasize efficient use limit their overhead by either restricting their focus to efficiency of a few important resources, like the CPU and the memory, or by not monitoring the use of resources at all, and instead handling user programs and resources in a manner that guarantees high efficiency.

User convenience

In the early days of computing, user convenience was synonymous with bare necessity—the mere ability to execute a program written in a higher level language was considered adequate. Experience with early operating systems led to demands for better service, which in those days meant only fast response to a user request. Other facets of user convenience evolved with the use of computers in new fields. Early operating systems had command-line interfaces, which required a user to type in a command and specify values of its parameters. Users needed substantial training to learn use of the commands, which was acceptable because most users were scientists or computer professionals. However, simpler interfaces were needed to facilitate use of computers by new classes of users. Hence graphical user interfaces (GUIs) were evolved. These interfaces used icons on a screen to represent programs and files and interpreted mouse clicks on the icons and associated menus as commands concerning them. In many ways, this move can be compared to the spread of car driving skills in the first half of the twentieth century. Over a period of time, driving became less of a specialty and more of a skill that could be acquired with limited training and experience.

Non interference

A computer user can face different kinds of interference in his computational activities. Execution of his program can be disrupted by actions of other persons, or the OS services which he wishes to use can be disrupted in a similar manner. The OS prevents such interference by allocating resources for exclusive use of programs and OS services, and preventing illegal accesses to resources. Another form of interference concerns programs and data stored in user files.

Advantages of Operating System

  • It helps in managing the data present in the device i.e. Memory Management.
  • It helps in making the best use of computer hardware.
  • It helps in maintaining the security of the device.
  • It helps different applications in running them efficiently.

Disadvantages of Operating System

  • Operating Systems can be difficult for someone to use.
  • Some OS are expensive and they require heavy maintenance.
  • Operating Systems can come under threat if used by hackers.

Conclusion

OS (operating system) – this is how we call the absolute core of modern computing API which directly interacts between you and machine. Types of Operating System and its FeaturesDifferent types of operating systems have their distinct features, so we can choose the right one for different applications. Windows (widely used), macOS (high security level), Linux (flexible OS) and smaller systems/devices such as Android and iOS, it all depends on the requirements of what you need.

In a similar way like technology improves, operating systems will always have a part in managing jobs such as security and enhancing user experience. Operating systems are mostly about the way you use IT – even if not at a high level, as would have been required by developers or professionals. Few focus areas when picking OS are too, getting a good job done at the moment and all set for later tasks as well.

Frequently Asked Questions on Operating Systems – FAQs

Explain Operating System

The operating system can be explained as the intermediate, which works between the user and the system hardware so that the user can get a nice experience while using a system. Without an Operating system, there will be a lot of difficulties can be faced by the user while running a system.

What are the types of operating Systems?

The types of Operating systems are listed below.

What is the importance of an Operating System?

The operating system is one of the most important parts of a Computer System. Without an Operating System, the system will not be able to work. As Operating System works as an interpreter between the user and the hardware part, which helps in the smooth functioning of the system.

What is an OS Structure?

Operating System structure is basically the model in which the system works. The structure of the operating system should be user-friendly, such that if any user having less knowledge about the system comes then he/she will not face any difficulties while running the system.

What do you mean by a process in Operating System?

A process can be simply defined as the instance of a computer. The process always includes the program code and its operations both. The process also includes the threads running in the computer system. It can be a single thread or a multiple thread.



Similar Reads

Introduction To Mobile Operating System - PALM OS
PALM OS is an operating system for personal digital assistants, designed for touchscreen. It consists of a limited number of features designed for low memory and processor usage which in turn helps in getting longer battery life. Features of PALM OSElementary memory management system.Provides PALM Emulator.Handwriting recognition is possible.Suppor
2 min read
Introduction of Deadlock in Operating System
A deadlock is a situation where a set of processes is blocked because each process is holding a resource and waiting for another resource acquired by some other process. In this article, we will discuss deadlock, its necessary conditions, etc. in detail. What is Deadlock?Deadlock is a situation in computing where two or more processes are unable to
11 min read
System Protection in Operating System
Introduction: System protection in an operating system refers to the mechanisms implemented by the operating system to ensure the security and integrity of the system. System protection involves various techniques to prevent unauthorized access, misuse, or modification of the operating system and its resources. There are several ways in which an op
3 min read
User View Vs Hardware View Vs System View of Operating System
User View of Operating System: The Operating System is an interface, hides the details which must be performed and present a virtual machine to the user that makes it easier to use. Operating System provides the following services to the user. Execution of a programAccess to I/O devicesControlled access to filesError detection (Hardware failures, a
1 min read
Xv6 Operating System -adding a new system call
Prerequisite - Xv6 Operating System -add a user program In last post we got to know how to add user program in Xv6 Operating System. Now here you will see how to add new system call in Xv6 Operating System. A dding new system call to xv6: A system call is way for programs to interact with operating system. A computer program makes system call when
6 min read
Traps and System Calls in Operating System (OS)
Traps and system calls are two mechanisms used by an operating system (OS) to perform privileged operations and interact with user-level programs. Here is an overview of each mechanism: Traps: A trap is an interrupt generated by the CPU when a user-level program attempts to execute a privileged instruction or encounters an error. When a trap occurs
3 min read
Fork System Call in Operating System
In many operating systems, the fork system call is an essential operation. The fork system call allows the creation of a new process. When a process calls the fork(), it duplicates itself, resulting in two processes running at the same time. The new process that is created is called a child process. It is a copy of the parent process. The fork syst
5 min read
System Programs in Operating System
System Programming can be defined as the act of building Systems Software using System Programming Languages. According to Computer Hierarchy, Hardware comes first then is Operating System, System Programs, and finally Application Programs. Program Development and Execution can be done conveniently in System Programs. Some of the System Programs ar
3 min read
File System Implementation in Operating System
A file is a collection of related information. The file system resides on secondary storage and provides efficient and convenient access to the disk by allowing data to be stored, located, and retrieved. File system implementation in an operating system refers to how the file system manages the storage and retrieval of data on a physical storage de
11 min read
Difference between System Software and Operating System
Software is like a set of instructions that tell a computer what to do. There are two main types application software and system software. Application software is extra programs you can add to your computer to do specific things, like write documents or play games. You don't need these to use your computer, but they help you do particular tasks. Sy
5 min read
Banker's Algorithm in Operating System
Prerequisite - Resource Allocation Graph (RAG), Banker’s Algorithm, Program for Banker’s Algorithm Banker's Algorithm is a resource allocation and deadlock avoidance algorithm. This algorithm test for safety simulating the allocation for predetermined maximum possible amounts of all resources, then makes an “s-state” check to test for possible acti
15 min read
Swap Space in Operating System
A computer has a sufficient amount of physical memory but most of the time we need more so we swap some memory on disk. Swap space is a space on a hard disk that is a substitute for physical memory. It is used as virtual memory which contains process memory images. Whenever our computer runs short of physical memory it uses its virtual memory and s
6 min read
Allocation of frames in Operating System
An important aspect of operating systems, virtual memory is implemented using demand paging. Demand paging necessitates the development of a page-replacement algorithm and a frame allocation algorithm. Frame allocation algorithms are used if you have multiple processes; it helps decide how many frames to allocate to each process. There are various
3 min read
Thread Models in Operating System
A thread is a light weight process which is similar to a process where every process can have one or more threads. Each thread contains a Stack and a Thread Control Block. There are four basic thread models : 1. User Level Single Thread Model : Each process contains a single thread.Single process is itself a single thread.process table contains an
2 min read
Commonly Used Operating System
There are various types of Operating Systems used throughout the world and this depends mainly on the type of operations performed. These Operating Systems are manufactured by large multinational companies like Microsoft, Apple, etc. Let's look at the few most commonly used OS in the real world: WindowsUNIXLINUXBOSSSOLARISWindowsGenerally referred
9 min read
The Tempo Operating System
Operating system : An Operating system is an interface between the computer user and computer hardware. An Operating system is a software which performs all the basic task like file handling, file management, memory management, handling input and output, controlling peripherals devices such as disk drive and printer, mouse...etc Tempo operating sys
5 min read
Boot Block in Operating System
Basically for a computer to start running to get an instance when it is powered up or rebooted it need to have an initial program to run. And this initial program which is known as bootstrap needs to be simple. It must initialize all aspects of the system, from CPU registers to device controllers and the contents of the main memory, and then starts
5 min read
Comparison on using Java for an Operating System instead of C
Java is a managed language which offers memory safety. In Java, pointers do not exist, so we cannot do pointer arithmetic on a function pointer. An application can invoke a method defined in a class through the class object. In Java, we cannot do unsafe typecast of an object to overwrite the method pointer with something else. An out of bound array
2 min read
Difference between Loading and Linking in Operating System
An operating system acts as an intermediary between the user of a computer and computer hardware. The purpose of an operating system is to provide an environment in which a user can execute programs conveniently and efficiently. Linking and Loading are utility programs that play an important role in the execution of a program. Linking intakes the o
4 min read
Stack Implementation in Operating System uses by Processor
A stack is an associate ordered a set of components, only one of that (last added) are often accessed at a time. The point of access is named the highest of the stack. The number of components within the stack, or length of the stack, is variable. Items could solely be side to or deleted from the highest of the stack. For this reason, a stack is ad
4 min read
Best-Fit Allocation in Operating System
INTRODUCTION: Best-Fit Allocation is a memory allocation technique used in operating systems to allocate memory to a process. In Best-Fit, the operating system searches through the list of free blocks of memory to find the block that is closest in size to the memory request from the process. Once a suitable block is found, the operating system spli
4 min read
Thread Control Block in Operating System
Very similar to Process Control Blocks (PCBs) which represents processes, Thread Control Blocks (TCBs) represents threads generated in the system. It contains information about the threads, such as it's ID and states. The components have been defined below: Thread ID: It is a unique identifier assigned by the Operating System to the thread when it
1 min read
Two State Process Model in Operating System
Pre-requisite: States of a Process in Operating Systems The process in an operating system passes from different states starting from its formation to its completion. A process consists of program data and its associated data and a process control block (PCB). A process may change its state because of the following events like I/O requests, interru
3 min read
I/O Hardware in Operating System
I/O Hardware is a set of specialized hardware devices that help the operating system access disk drives, printers, and other peripherals. These devices are located inside the motherboard and connected to the processor using a bus. They often have specialized controllers that allow them to quickly respond to requests from software running on top of
6 min read
Completely Fair Queuing (CFQ) in Operating System
Several Linux I/O schedulers have been proposed. Some of these are: Completely Fair Queuing (CFQ) Deadline NOOP Anticipatory CFQ is one of the input/output scheduler for the Linux kernel and is the current default scheduler in the Linux kernel. What is kernel ? Kernel is the central part of an operating system. It manages the operation between the
2 min read
Concurrent Processes in Operating System
Concurrent processing is a computing model in which multiple processors execute instructions simultaneously for better performance. Concurrent means, which occurs when something else happens. The tasks are broken into subtypes, which are then assigned to different processors to perform simultaneously, sequentially instead, as they would have to be
2 min read
Time Sharing Operating System
Multiprogrammed, batched systems provide an environment where various system resources were used effectively, but it did not provide for user interaction with computer systems. Time-sharing is a logical extension of multiprogramming. The CPU performs many tasks by switches that are so frequent that the user can interact with each program while it i
5 min read
List scheduling in Operating System
Prerequisite - CPU Scheduling List Scheduling also known as Priority List Based Scheduling is a scheduling technique in which an ordered list of processes are made by assigning them some priorities. So, basically what happens is, a list of processes that are ready to be executed at a given point is made. And then depending on the availability of pr
3 min read
Priority Assignment to Tasks in Operating System
Assigning priority to tasks : When the number of tasks with different relative deadlines are more than the priority levels supported by the operating system, then some tasks share the same priority value. But the exact method of assigning priorities to tasks can proficiently affect the utilization of processor. If the tasks are randomly selected fo
3 min read
Stable-Storage Implementation in Operating system
By definition, information residing in the Stable-Storage is never lost. Even, if the disk and CPU have some errors, it will never lose any data. Stable-Storage Implementation: To achieve such storage, we need to replicate the required information on multiple storage devices with independent failure modes. The writing of an update should be coordin
3 min read
three90RightbarBannerImg