- 1 Introduction
- 2 What is an Operating System?
- 3 Why Do We Need An Operating System?
- 4 Operating System Design And Implementation
- 5 Types of Operating System
- 6 1. Batch Operating System
- 7 2. Time-Sharing Operating System
- 8 3. Distributed Operating System
- 9 4. Network Operating System
- 10 5. Real-Time Operating System
In this era of technology, there is no sphere of life where computers are not used. From large production systems to small-scale local businesses all use computers to manage and optimize their workflows.
If we talk about computers in general, every computer is built on an IPO logic that is Input, Process, and Output. Now there are several devices that are meant to function according to this IPO logic.
- Input consists of devices like a mouse, keyboard, or webcam. These are devices that can initiate a process for the CPU to perform.
- The processing part of the IPO logic is done by the CPU(Central Processing Unit) which performs all the operations of a computer like arithmetic calculations, memory input and output, and many more.
- The output consists of devices that show the result of all the operations performed by the CPU on our input. These include devices like a monitor, printer, etc.
What is an Operating System?
Defining Operating System in a single line is a very difficult task but to define an Operating System in layman’s terms we can say that an Operating System is a computer program that manages the scheduling, execution, and termination of other computer programs and also acts as an interface for users to interact with the underlying hardware.
An Operating System can be considered as the brain of a computer. Just like a human brain an Operating System also helps in the proper functioning of all computer operations.
Why Do We Need An Operating System?
We can view a Computer as consisting of Hardware, Software, and Data. So, an Operating System:
- Controls the hardware and coordinates its use among the various application programs for the various users.
- Provides the means for the proper use of these resources in the operation of the computer system.
- Provides an environment for other programs to perform their tasks and complete their execution cycle.
- Execute user programs and make solving user programs easier.
- Make the computer system convenient to use.
- Use computer hardware in an efficient manner.
Operating System Design And Implementation
The design and implementation of an operating system highly vary from user to user and from usage to usage.
- Kali Linux, a Linux-based open-source operating system is highly used in hacking and penetration testing. So, according to the usage the operating system has a highly advanced Command Line Interface which provides a fast exception of commands but the GUI (Graphic User Interface) of the operating system is not that good.
- Now if we talk about Mac OS, an enterprise operating system by Apple has a great GUI and provides a closely bound ecosystem for the cross-device integration for all the devices which are manufactured by Apple. This ensures a seamless and premium experience to the user which adds to the worth of the device and the company.
- Similarly, Windows, an operating system by Microsoft Inc. is one of the most widely used operating systems due to its ease of use, high availability, reliability, and customization which it provides over the device to the user.
So, based on the above examples we can say that the design and implementation of an operating system highly depend on the user and the system requirements. There are two goals that are taken into perspective while defining the requirements for an operating system that are:
- User Goals: an operating system should be convenient to use, easy to learn, safe, fast, and reliable.
- System Goals: an operating system should be easy to design, implement and maintain as well as flexible, reliable, error-free and efficient.
These Goals are very important to keep in while designing an operating system so that it can cater to the needs of the user.
Types of Operating System
1. Batch Operating System
- This type of Operating System doesn’t interact with the CPU directly.
- Batch Type Operating System uses something called an Operator, which takes Jobs jobs having similar requirements and clubs them into batches.
- This Operator is responsible to sort the jobs for similar requirements.
Advantages Of Batch Operating System
- Due to the operator combining jobs into batches, Multiple users can work on the same system at a single time.
- The idle time of the batch systems is very less.
- Large workloads can be easily handled.
Disadvantages of Batch Operating System
- Batch Systems are very hard to debug.
- Due to this difficulty in debugging, sometimes the jobs can have to wait for a long amount of time if any job in a batch fails.
- If in any case, the operator fails the entire system fails.
2. Time-Sharing Operating System
- Each task in the system has some time associated with it so that all the tasks run smoothly in the system.
- In a Time Sharing Operating System, each user shares the CPU based on time and work just like a single system.
- The time for which each task takes to execute is called a quantum. After this time is over, the OS switches over to a new task.
- This ensures that all the tasks get equal time to get executed.
Advantages of Time Sharing Operating System
- Ensures that each task gets equal time to get executed.
- Reduces the chance of CPU idle time.
Disadvantages of Time Sharing Operating System
- If the quantum is very small, there can be a chance that the system can go throttling. This means that the system will spend more time in task switching than task execution.
- There can be chances of data loss.
- Security can be a major concern in these types of systems.
3. Distributed Operating System
- In a distributed operating system, several computers are connected to each other using a common network.
- Each and every connection is an indigenous system, which accepts tasks from the user.
- The task is then distributed among the network to provide faster execution times.
Advantages of Distributed Operating System
- The load on the computer reduces as the task is divided into parts that are executed by multiple systems.
- Due to this load sharing, there is less chance of failure.
- If in any case, a system in the network fails, there is no effect on the other systems.
- The system is highly scalable. The system can be robust to load changes.
Disadvantages of Distributed Operating System
- The setup cost is very high, as it needs very complex software to function. So the cost to develop and run these systems is very high.
- If in any case, the central distribution node fails the entire system fails.
- The system can be very critical and needs high security.
4. Network Operating System
- These operating systems usually run on large community or enterprise servers and feed the needs of a large number of systems.
- Network operating systems are very good for applications that need shared access to files, security applications and databases.
- All the users in the system are tightly integrated into each other as all the usage and configuration are visible to all the users.
Advantages of Network Operating System
- The server holds most of the data and sharing, the overhead cost on all the client devices can be reduced.
- The upgrade of the system is very easy.
- The servers can also be accessed from a remote location, making it easier to work upon.
Disadvantages of Network Operating Systems
- If the central server gets attacked it might cause a lot of damage to data and business logic.
- Central servers are very costly.
5. Real-Time Operating System
- These are the operating systems that work on streams of data.
- The data is continuously fed and is processed within a small amount of time making them fast and dependable.
Advantages of Real-Time Operating System
- The Systems are fast.
- Can handle heavy loads in a very small amount of time.
Disadvantages of Real-Time Operating System
- The systems are costly to develop.
- These systems run critical applications like industrial production lines and rocket launch systems, a small error can cause heavy losses.