Chapter 1 Introduction To Operating System
Chapter 1 Introduction To Operating System
Advantages of RTOS:
• Maximum Consumption: Maximum utilization of devices and
system, thus more output from all the resources
• Task Shifting: The time assigned for shifting tasks in these
systems are very less. For example, in older systems, it takes about
10 microseconds in shifting one task to another, and in the latest
systems, it takes 3 microseconds.
• Focus on Application: Focus on running applications and less
importance to applications which are in the queue.
• Real-time operating system in the embedded system: Since the
size of programs are small, RTOS can also be used in embedded
systems like in transport and others.
• Error Free: These types of systems are error-free.
• Memory Allocation: Memory allocation is best managed in these
types of systems.
Disadvantages of RTOS:
• Limited Tasks: Very few tasks run at the same time and their
concentration is very less on few applications to avoid errors.
• Use heavy system resources: Sometimes the system resources are
not so good and they are expensive as well.
• Complex Algorithms: The algorithms are very complex and
difficult for the designer to write on.
• Device driver and interrupt signals: It needs specific device
drivers and interrupts signals to respond earliest to interrupts.
• Thread Priority: It is not good to set thread priority as these
systems are very less prone to switching tasks.
Examples of Real-Time Operating Systems are: Scientific
experiments, medical imaging systems, industrial control systems,
weapon systems, robots, air traffic control systems, etc.
Distributed Operating System
These types of the operating system is a recent advancement in the
world of computer technology and are being widely accepted all over
the world and, that too, with a great pace. Various autonomous
interconnected computers communicate with each other using a shared
communication network. Independent systems possess their own
memory unit and CPU. These are referred to as loosely coupled
systems or distributed systems. These system’s processors differ in
size and function. The major benefit of working with these types of
the operating system is that it is always possible that one user can
access the files or software which are not actually present on his
system but some other system connected within this network i.e.,
remote access is enabled within the devices connected in that
network.
Advantages of Distributed Operating System:
• Failure of one will not affect the other network communication, as
all systems are independent from each other
• Electronic mail increases the data exchange speed
• Since resources are being shared, computation is highly fast and
durable
• Load on host computer reduces
• These systems are easily scalable as many systems can be easily
added to the network
• Delay in data processing reduces
Disadvantages of Distributed Operating System:
• Failure of the main network will stop the entire communication
• To establish distributed systems the language which is used are not
well defined yet
• These types of systems are not readily available as they are very
expensive. Not only that the underlying software is highly complex
and not understood well yet
1.4 Explain OS Based on User Interface (Command user Interface
and Graphical user interface).
Command user Interface
CLI is a command line program that accepts text input to execute operating system functions.
CLI is a text-based interface. CLI allows a user to perform tasks by entering commands. Its
working mechanism is very easy, but it is not user friendly.
Users enter the specific command, press “Enter”, and then wait for a response. After receiving
the command, the CLI processes it accordingly and shows the output/result on the same screen.
Compared with a graphical user interface, a command-line interface requires fewer system
resources to implement.
CLI is a platform or medium wherever users answer a visible prompt by writing a command and
get the response from the system, for this users have to be compelled to kind command or train
of command for performing the task.
Advantages and Disadvantages of CLI
Advantages Disadvantages
This type of interface needs much less Commands have to be typed precisely. If
memory (RAM) in order to use compared there is a spelling error the command will
to other types of user interfaces. fail.
This type of interface does not use as much If you mis-type an instruction, it is often
CPU processing time as others. necessary to start from scratch again.
Advantages Disadvantages
This type of user interface is easy to GUIs take up a much larger amount of hard
use, especially for a beginner disk space than other interfaces
You do not have to learn They use more processing power than other
complicated commands types of interface
Advantages and Disadvantages
Advantages Disadvantages
There are usually a reasonable 'help' They can be slow for experienced programmers
system included with WIMP to use. These people often find CLI interfaces
interfaces much faster to use
Figure 1: OS
In a single user, single task operating system, a single user can perform only one
task at a time. Palm OS for Palm handheld computers is an example for a single
user, single task operating system. In a single user multitask system, a single user
can perform multiple tasks at the same time. Microsoft Windows and Apple Mac
OS allow a single user to work on multiple programs at the same time. For
example, a user can work on a word document and browser the World Wide Web
simultaneously. Most modern personal computers and laptops are single user
multi-tasking operating systems.
The advantages:
• simplicity.
• dedicated use of hardware
• easily debugged.
The disadvantages:
• Once an application starts getting complicated it starts needing to process
things in parallel. And that adds interrupts, and the loss of simplicity.
Multi-User Operating System
A multi-user operating system allows multiple users to access the computer at the
same time. The operating system manages the memory and resources among the
various users according to the requirements. The task of one user will not affect
the tasks of the other users. UNIX and Linux are two examples of multi-user
operating systems.
A time-sharing operating system allows multiple users in different locations to use
a particular computer system concurrently. In distributed operating system, the
data processing task is divided among the processors accordingly. It is also a
multiuser operating system.
Advantages
1. you would be able to run different programs on their native OS’s.
2. You also would have a great deal of versatility in what you can do with your
computer. (e.g. gaming and software development, Windows and Linux
software development on the same system, ect.)
3. You can also do things in one OS that you wouldn’t be able to do in your
main OS. (Linux/FreeBSD could give you more control than Win10)
4. If you use your computer for work, then you can also use it to separate
work and leisure. (very helpful)
Disadvantages
1. Both OS’s must have adequate hardware support to work properly. If they
don’t it can be a mess.
2. At some point you may find yourself spending all of your time on one OS,
making the dual-boot kind a waste.
3. Switching between OS’s is usually smooth, but in my experience, that isn’t
always the case.
4. It would take a bit more work to set up vs. just having one OS.
Comparison between Single User and Multi-User Operating System: