Unit 1 - Overview OfOS
Unit 1 - Overview OfOS
The operating system manages resources of system software and computer hardware resources.
1. Process Management
2. File Management
3. Network Management
4. Main Memory Management
5. Secondary Storage Management
6. I/O Device Management
7. Security Management
8. Command Interpreter System
Process Management
The process management component is a procedure for managing many processes running simultaneously on
the operating system. Every running software application program has one or more processes associated with
them.
For example, when you use a search engine like Chrome, there is a process running for that browser program.
File Management
A file is a set of related information defined by its creator. It commonly represents programs (both source and
object forms) and data. Data files can be alphabetic, numeric, or alphanumeric.
Function of file management
The operating system has the following important activities in connection with file management:
Network Management
Network management is the process of administering and managing computer networks. It includes
performance management, provisioning of networks, fault analysis, and maintaining the quality of service.
o Distributed systems help you to various computing resources in size and function. They may involve
minicomputers, microprocessors, and many general-purpose computer systems.
o A distributed system also offers the user access to the various resources the network shares.
o It helps to access shared resources that help computation to speed up or offers data availability and
reliability.
Main memory is a large array of storage or bytes, which has an address. The memory management process is
conducted by using a sequence of reads or writes of specific memory addresses.
An Operating System performs the following functions for Memory Management in the operating system:
Secondary-Storage Management
The most important task of a computer system is to execute programs. These programs help you to access the
data from the main memory during execution. This memory of the computer is very small to store all data and
programs permanently.
Here are some major functions of secondary storage management in the operating system:
o Storage allocation
o Free space management
o Disk scheduling
One of the important use of an operating system that helps to hide the variations of specific hardware devices
from the user.
The I/O management system offers the following functions, such as:
Security Management
The various processes in an operating system need to be secured from other activities. Therefore, various
mechanisms can ensure those processes that want to operate files, memory CPU, and other hardware resources
should have proper authorization from the operating system.
In Kernel mode, the whole operating system In user mode, a single process fails if
Interruptions might go down if an interrupt occurs an interrupt occurs.
In kernel mode, all processes share a single In user mode, all processes get
Virtual address space virtual address space. separate virtual address space.
In kernel mode, the applications have more While in user mode the applications
Level of privilege privileges as compared to user mode. have fewer privileges.
Criteria Kernel Mode User Mode
As kernel mode can access both the user While user mode needs to access
programs as well as the kernel programs kernel programs as it cannot directly
Restrictions there are no restrictions. access them.
The operating system may be observed from the point of view of the user or the system, and it is known as the
user view and the system view.
1. User View
2. System View
User View
The user view depends on the system interface that is used by the users. Some systems are designed for a single
user to monopolize the resources to maximize the user's task. In these cases, the OS is designed primarily for
ease of use, with little emphasis on quality and none on resource utilization.
Most computer users use a monitor, keyboard, mouse, printer, and other accessories to operate their computer
system. In some cases, the system is designed to maximize the output of a single user. As a result, more
attention is laid on accessibility, and resource allocation is less important.
Another example of user views in which the importance of user experience and performance is given is when
there is one mainframe computer and many users on their computers trying to interact with their kernels over
the mainframe to each other.
Moreover, the touchscreen era has given you the best handheld technology ever. Smartphones interact via
wireless devices to perform numerous operations, but they're not as efficient as a computer interface, limiting
their usefulness.
Some systems, like embedded systems that lack a user point of view. The remote control used to
turn on or off the tv is all part of an embedded system in which the electronic device communicates with
another program where the user viewpoint is limited and allows the user to engage with the application.
System View
The OS may also be viewed as just a resource allocator. A computer system comprises various sources, such as
hardware and software, which must be managed effectively. The operating system manages the resources,
decides between competing demands, controls the program execution,
1. Resource Allocation
The hardware contains several resources like registers, caches, RAM, ROM, CPUs, I/O interaction, etc. These
are all resources that the operating system needs when an application program demands them.
2. Control Program
The control program controls how input and output devices (hardware) interact with the operating system. The
user may request an action that can only be done with I/O devices; in this case, the operating system must also
have proper communication, control, detect, and handle such devices.
Multi-Processing Operating System is a type of Operating System in which more than one CPU is
used for the execution of resources. It betters the throughput of the System.
Multiprogramming is an extension to batch processing where the CPU is always kept busy. Each process
needs two types of system time: CPU time and IO time.
In Multiprocessing, Parallel computing is achieved. There are more than one processors present in the
system which can execute more than one process at the same time. This will increase the throughput of
the system.
Increased reliability: Due to the multiprocessing system, processing tasks can be distributed among
several processors. This increases reliability as if one processor fails, the task can be given to another
processor for completion.
Increased throughout: As several processors increase, more work can be done in less.
Advantages of RTOS
Maximum Consumption: Maximum utilization of devices and systems, thus more output from all the
resources.
Task Shifting: The time assigned for shifting tasks in these systems is very less. For example, in older
systems, it takes about 10 microseconds in shifting from one task to another, and in the latest systems, it
takes 3 microseconds.
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 a 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.
Examples of Real-Time Operating Systems are scientific experiments, medical imaging systems, industrial
control systems, weapon systems, robots, air traffic control systems, etc.
Mobile Operating System
A mobile operating system is an operating system that helps to run other application software on mobile
devices. It is the same kind of software as the famous computer operating systems like Linux and Windows, but
now they are light and simple to some extent.
The operating systems found on smartphones include Symbian OS, iPhone OS, RIM's
BlackBerry, Windows Mobile, Palm WebOS, Android, and Maemo. Android, WebOS, and Maemo are all
derived from Linux. The iPhone OS originated from BSD and NeXTSTEP, which are related to Unix.
It combines the beauty of computer and hand use devices. It typically contains a cellular built-in modem and
SIM tray for telephony and internet connections. If you buy a mobile, the manufacturer company chooses the
OS for that specific device.
1. Android OS: The Android operating system is the most popular operating system today. It is a mobile OS
based on the Linux Kernel and open-source software. The android operating system was developed
by Google. The first Android device was launched in 2008.
2. Bada (Samsung Electronics): Bada is a Samsung mobile operating system that was launched in 2010. The
Samsung wave was the first mobile to use the bada operating system. The bada operating system offers many
mobile features, such as 3-D graphics, application installation, and multipoint-touch.
3. BlackBerry OS: The BlackBerry operating system is a mobile operating system developed by Research In
Motion (RIM). This operating system was designed specifically for BlackBerry handheld devices. This
operating system is beneficial for the corporate users because it provides synchronization with Microsoft
Exchange, Novell GroupWise email, Lotus Domino, and other business software when used with the
BlackBerry Enterprise Server.
4. iPhone OS / iOS: The iOS was developed by the Apple inc for the use on its device. The iOS operating
system is the most popular operating system today. It is a very secure operating system. The iOS operating
system is not available for any other mobiles.
Differences
2. Concept of Context Switching is used. Concept of Context Switching and Time Sharing is
Sr.no Multiprogramming Multi-tasking
used.
In multiprogrammed system, the operating The processor is typically used in time sharing mode.
system simply switches to, and executes, Switching happens when either allowed time expires
3.
another job when current job needs to or where there other reason for current process needs
wait. to wait (example process needs to do IO).
The idea is to reduce the CPU idle time for The idea is to further extend the CPU Utilization
5.
as long as possible. concept by increasing responsiveness Time Sharing.
8. Execution of process takes more time. Execution of process takes less time.
02. Processors time is shared with multiple users Processor and memory underutilization
that’s why it is called as time sharing problem is resolved and multiple programs
runs on CPU that’s why it is called
operating system. multiprogramming.
In this process, two or more users can use a In this, the process can be executed by a
03. processor in their terminal. single processor.
Here the system works for the same or less Here the system does not take same time to
06. time on each processes. work on different processes.
3. In this operating system any modification While in this modification does not take
S.NO Time Sharing Operating System Real-Time Operating System
In this OS, computer resources are But in this OS, computer resources are
4.
shared to the external. not shared to the external.
It deals with more than processes or Whereas it deals with only one process
5.
applications simultaneously. or application at a time.
CLI operating system needs only a While GUI operating system needs both
5. keyboard. a mouse and keyboard.
CLI’s appearance can not be modified or While its appearance can be modified or
6. changed. changed.
In CLI, input is entered only at a While in GUI, the input can be entered
7. command prompt. anywhere on the screen.
S.NO CLI GUI
9. In CLI, there are no menus provided. While in GUI, menus are provided.
10. There are no graphics in CLI. While in GUI, graphics are used.
In CLI, spelling mistakes and typing Whereas in GUI, spelling mistakes and
12. errors are not avoided. typing errors are avoided.