CSC 321 Operating System
CSC 321 Operating System
COURSE CONTENT
Prerequisite: CSC211, CSC261
Overview of operating systems: roles and purpose,
basic functions device management; processes, threads
and device management, memory management, file
management, OS strategies and technologies, batch
systems, time sharing systems mechanism to support
client server models, hand held device, embedded
systems, influences of network security and
multimedia. OS principles: interrupts, concurrency,
process scheduling strategies. Deadlock-prevention,
avoidance, detection and recovery, manual deadlock
management. Basic synchronization principles. Virtual
memory-address translation, paging and
segmentation.
OVERVIEW OF OPERATING SYSTEMS
An Operating System (OS) is an interface between a computer
user and computer hardware. An operating system is a software
which performs all the basic tasks like file management,
memory management, process management, handling input and
output, and controlling peripheral devices such as disk drives
and printers.
An operating system is software that enables applications to
interact with a computer's hardware. The software that contains
the core components of the operating system is called the kernel.
The primary purposes of an Operating System are to enable
applications (spftwares) to interact with a computer's hardware
and to manage a system's hardware and software resources.
Device Management
An Operating System manages device communication via their
respective drivers. It does the following activities for device
management −
Keeps tracks of all devices. Program responsible for this task is
known as the I/O controller.
Decides which process gets the device when and for how much
time.
Allocates the device in the efficient way.
De-allocates devices.
File Management
A file system is normally organized into directories for easy navigation
and usage. These directories may contain files and other directions. An
Operating System does the following activities for file management −
Keeps track of information, location, uses, status etc. The collective
facilities are often known as file system.
Decides who gets the resources.
Allocates the resources.
De-allocates the resources.
Other Important Activities
Following are some of the important activities that an Operating System performs:
Security − By means of password and similar other techniques, it prevents
unauthorized access to programs and data.
Control over system performance − Recording delays between request for a
service and response from the system.
Job accounting − Keeping track of time and resources used by various jobs and
users.
Error detecting aids − Production of dumps, traces, error messages, and other
debugging and error detecting aids.
Coordination between other softwares and users − Coordination and assignment
of compilers, interpreters, assemblers and other software to the various users of
the computer systems.
Components of Operating System
There are various components of an Operating
System to perform well defined tasks. Though most
of the Operating Systems differ in structure but
logically they have similar components. Each
component must be a well-defined portion of a
system that appropriately describes the functions,
inputs, and outputs.
There are following 8-components of an Operating System:
Process Management
I/O Device Management
File Management
Network Management
Main Memory Management
Secondary Storage Management
Security Management
Command Interpreter System
Process Management
A process is program or a fraction of a program that is loaded
in main memory. A process needs certain resources including
CPU time, Memory, Files, and I/O devices to accomplish its
task. The process management component manages the
multiple processes running simultaneously on the Operating
System. A program in running state is called a process. The
operating system is responsible for the following activities in
connection with process management:
Create, load, execute, suspend, resume, and terminate
processes.
Switch system among multiple processes in main memory.
Provides communication mechanisms so that processes can
communicate with each others
Provides synchronization mechanisms to control concurrent
access to shared data to keep shared data consistent.
Allocate/de-allocate resources properly to prevent or avoid
deadlock situation.
I/O Device Management
One of the purposes of an operating system is to hide the peculiarities of
specific hardware devices from the user. I/O Device Management provides an
abstract level of H/W devices and keep the details from applications to ensure
proper use of devices, to prevent errors, and to provide users with convenient
and efficient programming environment.
Following are the tasks of I/O Device Management component:
Hide the details of H/W devices
Manage main memory for the devices using cache, buffer, and spooling
Maintain and provide custom drivers for each device.
Network Management
The definition of network management is often broad, as network management
involves several different components. Network management is the process of
managing and administering a computer network. A computer network is a
collection of various types of computers connected with each other. Network
management comprises fault analysis, maintaining the quality of service,
provisioning of networks, and performance management.Network management is
the process of keeping your network healthy for an efficient communication
between different computers. Following are the features of network management:
Network administration
Network maintenance
Network operation
Network provisioning
Network security
File Management
File management is one of the most visible services of an operating
system. Computers can store information in several different physical
forms; magnetic tape, disk, and drum are the most common forms.
A file is defined as a set of correlated information and it is defined by the
creator of the file. Mostly files represent data, source and object forms,
and programs.
Data files can be of any type like alphabetic, numeric, and alphanumeric.
A files is a sequence of bits, bytes, lines or records whose meaning is
defined by its creator and user.
The operating system implements the abstract concept of the file by
managing mass storage device, such as types and disks. Also files are
normally organized into directories to ease their use. These directories
may contain files and other directories and so on.
The operating system is responsible for the following activities in
connection with file management:
File creation and deletion
Directory creation and deletion
The support of primitives for manipulating files and directories
Mapping files onto secondary storage
File backup on stable (nonvolatile) storage media
Main Memory Management
Memory is a large array of words or bytes, each with its own address. It is a
repository of quickly accessible data shared by the CPU and I/O devices. Main
memory is a volatile storage device which means it loses its contents in the case of
system failure or as soon as system power goes down. The main motivation
behind Memory Management is to maximize memory utilization on the computer
system. The operating system is responsible for the following activities in
connections with memory management:
Keep track of which parts of memory are currently being used and by whom.
Decide which processes to load when memory space becomes available.
Allocate and de-allocate memory space as needed.
Secondary Storage Management
The main purpose of a computer system is to execute programs. These programs,
together with the data they access, must be in main memory during execution.
Since the main memory is too small to permanently accommodate all data and
program, the computer system must provide secondary storage to backup main
memory. Most modern computer systems use disks as the principle on-line storage
medium, for both programs and data. Most programs, like compilers, assemblers,
sort routines, editors, formatters, and so on, are stored on the disk until loaded
into memory, and then use the disk as both the source and destination of their
processing. The operating system is responsible for the following activities in
connection with disk management:
Free space management
Storage allocation
Security Management
The operating system is primarily responsible for all task and activities happen in
the computer system. The various processes in an operating system must be
protected from each other’s activities. For that purpose, various mechanisms which
can be used to ensure that the files, memory segment, cpu and other resources can
be operated on only by those processes that have gained proper authorization
from the operating system.
Security Management refers to a mechanism for controlling the access of
programs, processes, or users to the resources defined by a computer controls to
be imposed, together with some means of enforcement. For example, memory
addressing hardware ensure that a process can only execute within its own
address space. The timer ensure that no process can gain control of the CPU
without relinquishing it. Finally, no process is allowed to do it’s own I/O, to protect
the integrity of the various peripheral devices.
Command Interpreter System
One of the most important component of an operating system is its command
interpreter. The command interpreter is the primary interface between the user
and the rest of the system. Command Interpreter System executes a user command
by calling one or more number of underlying system programs or system calls.
Command Interpreter System allows human users to interact with the Operating
System and provides convenient programming environment to the users. Many
commands are given to the operating system by control statements. A program
which reads and interprets control statements is automatically executed. This
program is called the shell and few examples are Windows DOS command
window, Bash of Unix/Linux or C-Shell of Unix/Linux.
Other Important Activities
An Operating System is a complex Software System. Apart from the
above mentioned components and responsibilities, there are many
other activities performed by the Operating System. Few of them are
listed below:
Security − By means of password and similar other techniques, it
prevents unauthorized access to programs and data.
Control over system performance − Recording delays between
request for a service and response from the system.
Job accounting − Keeping track of time and resources used by various
jobs and users.
Error detecting aids − Production of dumps, traces, error messages,
and other debugging and error detecting aids.
Coordination between other softwares and users − Coordination and
assignment of compilers, interpreters, assemblers and other software to
the various users of the computer systems.
OPERATING SYSTEMS strategies and technologies
TYPES OF OPERATING SYSTEMS
1. Batch operating system: The users of a batch operating system do not interact
with the computer directly. Each user prepares his job on an off-line device like
punch cards and submits it to the computer operator. To speed up processing,
jobs with similar needs are batched together and run as a group. The
programmers leave their programs with the operator and the operator then
sorts the programs with similar requirements into batches. The problems with
Batch Systems are as follows −
Lack of interaction between the user and the job.
CPU is often idle, because the speed of the mechanical I/O devices is slower
than the CPU.
Difficult to provide the desired priority.
Interactivity
Interactivity refers to the ability of users to interact with a computer system. An
Operating system does the following activities related to interactivity −
Provides the user an interface to interact with the system.
Manages input devices to take inputs from the user. For example, keyboard.
Manages output devices to show outputs to the user. For example, Monitor.
The response time of the OS needs to be short, since the user submits and waits for
the result.
Real Time System
Real-time systems are usually dedicated, embedded systems. An
operating system does the following activities related to real-time
system activity.
In such systems, Operating Systems typically read from and react to
sensor data.
The Operating system must guarantee response to events within fixed
periods of time to ensure correct performance.
Distributed Environment
A distributed environment refers to multiple independent CPUs or
processors in a computer system. An operating system does the
following activities related to distributed environment −
The OS distributes computation logics among several physical
processors.
The processors do not share memory or a clock. Instead, each
processor has its own local memory.
The OS manages the communications between the processors. They
communicate with each other through various communication lines.
Spooling
Spooling is an acronym for simultaneous peripheral operations on line. Spooling refers
to putting data of various I/O jobs in a buffer. This buffer is a special area in memory or
hard disk which is accessible to I/O devices. An operating system does the following
activities related to distributed environment −
Handles I/O device data spooling as devices have different data access rates.
Maintains the spooling buffer which provides a waiting station where data can rest
while the slower device catches up.
Maintains parallel computation because of spooling process as a computer can
perform I/O in parallel fashion. It becomes possible to have the computer read data
from a tape, write data to disk and to write out to a tape printer while it is doing its
computing task.
Advantages
1. The spooling operation uses a disk as a very large buffer.
2. Spooling is capable of overlapping I/O operation for one job with processor
operations for another job.
Operating System - Processes
Process
A process is basically a program in execution. The execution of a process must
progress in a sequential fashion. A process is defined as an entity which
represents the basic unit of work to be implemented in the system. To put it in
simple terms, we write our computer programs in a text file and when we
execute this program, it becomes a process which performs all the tasks
mentioned in the program. When a program is loaded into the memory and it
becomes a process, it can be divided into four sections ─ stack, heap, text and
data. The following image shows a simplified layout of a process inside main
memory −
Stack: The process Stack contains the temporary data such as method/function
parameters, return address and local variables.
Heap: This is dynamically allocated memory to a process during its run time.
Text: This includes the current activity represented by the value of Program Counter and
the contents of the processor's registers.
Data: This section contains the global and static variables
Program
A program is a piece of code which may be a single line or millions of lines. A computer
program is usually written by a computer programmer in a programming language. A
computer program is a collection of instructions that performs a specific task when
executed by a computer. When we compare a program with a process, we can
conclude that a process is a dynamic instance of a computer program. A part of a
computer program that performs a well-defined task is known as an algorithm. A
collection of computer programs, libraries and related data are referred to as
a software. For example, here is a simple program written in C programming language:
#include <stdio.h>
int main() {
printf("Hello, World! \n");
return 0;
}
Process Life Cycle
When a process executes, it passes through different states. These stages may
differ in different operating systems, and the names of these states are also not
standardized. In general, a process can have one of the following five states at a
time.
2. Short-Term Scheduler
1. It is a CPU scheduler
2. Speed is fastest among other two
3. It provides lesser control over degree of multiprogramming
4. It is also minimal in time sharing system
5. It selects those processes which are ready to execute
3. Medium-Term Scheduler
2. It is a process swapping scheduler.
3. Speed is in between both short and long term scheduler.
4. It reduces the degree of multiprogramming.
5. It is a part of Time sharing systems.
6. It can re-introduce the process into memory and execution can be continued.
Context Switch
A context switch is the mechanism to store and restore the state or context of
a CPU in Process Control block so that a process execution can be resumed
from the same point at a later time. Using this technique, a context switcher
enables multiple processes to share a single CPU. Context switching is an
essential part of a multitasking operating system features.
When the scheduler switches the CPU from executing one process to execute
another, the state from the current running process is stored into the process
control block. After this, the state for the process to run next is loaded from
its own PCB and used to set the PC, registers, etc. At that point, the second
process can start executing.
Context switches are computationally intensive since register
and memory state must be saved and restored. To avoid the
amount of context switching time, some hardware systems
employ two or more sets of processor registers. When the
process is switched, the following information is stored for
later use.
Program Counter
Scheduling information
Base and limit register value
Currently used register
Changed State
I/O State information
Accounting information
OPERATING SYSTEM SCHEDULING ALGORITHMS
A Process Scheduler schedules different processes to be assigned to the CPU based
on particular scheduling algorithms. There are six popular process scheduling
algorithms which includes:
1. First-Come, First-Served (FCFS) Scheduling
2. Shortest-Job-Next (SJN) Scheduling
3. Priority Scheduling
4. Shortest Remaining Time
5. Round Robin(RR) Scheduling
6. Multiple-Level Queues Scheduling
These algorithms are either non-preemptive or preemptive. Non-preemptive
algorithms are designed so that once a process enters the running state, it cannot be
preempted until it completes its allotted time, whereas the preemptive scheduling is
based on priority where a scheduler may preempt a low priority running process
anytime when a high priority process enters into a ready state.
Process
1. Process is heavy weight or resource 7. Thread is light weight, taking lesser
intensive. resources than a process.
2. Process switching needs interaction 2. Thread switching does not need to
with operating system. interact with operating system.
3. In multiple processing environments, 3. All threads can share same set of open
each process executes the same code files, child processes.
but has its own memory and file
resources.
4. If one process is blocked, then no 4. While one thread is blocked and
other process can execute until the waiting, a second thread in the same
first process is unblocked. task can run.
5. Multiple processes without using 5. Multiple threaded processes use fewer
threads use more resources. resources.
6. In multiple processes each process
operates independently of the others. 6. One thread can read, write or change
another thread's data
Advantages of Thread
1. Threads minimize the context switching time.
2. Use of threads provides concurrency within a process.
3. Efficient communication.
4. It is more economical to create and context switch threads.
5. Threads allow utilization of multiprocessor architectures to a greater scale and efficiency.
Types of Thread
Threads are implemented in following two ways: 1. User Level Threads − User managed threads.
2. Kernel Level Threads − Operating System managed threads acting on kernel, an operating
system core.
1. User Level Threads
In this case, the thread management kernel is not aware of the existence of threads. The thread
library contains code for creating and destroying threads, for passing message and data between
threads, for scheduling thread execution and for saving and restoring thread contexts. The
application starts with a single thread.
Advantages User Level Threads
Thread switching does not require Kernel mode privileges.
User level thread can run on any operating system.
Scheduling can be application specific in the user level thread.
User level threads are fast to create and manage.
Disadvantages User Level Threads
In a typical operating system, most system calls are blocking.
Multithreaded application cannot take advantage of multiprocessing.
Kernel Level Threads
In this case, thread management is done by the Kernel. There is no thread management code in the
application area. Kernel threads are supported directly by the operating system. Any application can
be programmed to be multithreaded. All of the threads within an application are supported within a
single process.
The Kernel maintains context information for the process as a whole and for individuals threads
within the process. Scheduling by the Kernel is done on a thread basis. The Kernel performs thread
creation, scheduling and management in Kernel space. Kernel threads are generally slower to create
and manage than the user threads.
Advantages
Kernel can simultaneously schedule multiple threads from the same process on multiple processes.
If one thread in a process is blocked, the Kernel can schedule another thread of the same process.
Kernel routines themselves can be multithreaded.
Disadvantages
Kernel threads are generally slower to create and manage than the user threads.
Transfer of control from one thread to another within the same process requires a mode switch to
the Kernel.
Multithreading Models
Some operating system provide a combined user level thread and Kernel level thread facility.
Solaris is a good example of this combined approach. In a combined system, multiple threads
within the same application can run in parallel on multiple processors and a blocking system
call need not block the entire process.
three types Multithreading models
1. Many to many relationship 2. Many to one relationship 3. One to one relationship.
1. Many to Many Model
The many-to-many model multiplexes any number of user threads onto an equal or smaller
number of kernel threads. The following diagram shows the many-to-many threading model
where 6 user level threads are multiplexing with 6 kernel level threads. In this model,
developers can create as many user threads as necessary and the corresponding Kernel
threads can run in parallel on a multiprocessor machine. This model provides the best
accuracy on concurrency and when a thread performs a blocking system call, the kernel can
schedule another thread for execution.
Many to One Model
Many-to-one model maps many user level threads to one Kernel-level thread. Thread
management is done in user space by the thread library. When thread makes a blocking
system call, the entire process will be blocked. Only one thread can access the Kernel at a
time, so multiple threads are unable to run in parallel on multiprocessors. If the user-level
thread libraries are implemented in the operating system in such a way that the system does
not support them, then the Kernel threads use the many-to-one relationship modes.
External fragmentation can be reduced by compaction or shuffle memory contents to place all
free memory together in one large block. To make compaction feasible, relocation should be
dynamic.
The internal fragmentation can be reduced by effectively assigning the smallest partition but
large enough for the process.
Paging
A computer can address more memory than the amount physically installed on the system.
This extra memory is actually called virtual memory and it is a section of a hard that's set up to
emulate the computer's RAM. Paging technique plays an important role in implementing
virtual memory.
Paging is a memory management technique in which process address space is broken into
blocks of the same size called pages (size is power of 2, between 512 bytes and 8192 bytes).
The size of the process is measured in the number of pages.
Similarly, main memory is divided into small fixed-sized blocks of (physical) memory
called frames and the size of a frame is kept the same as that of a page to have optimum
utilization of the main memory and to avoid external fragmentation.
Address Translation
Page address is called logical address and represented by page number and the offset.
Logical Address = Page number + page offset Frame address is called physical address and
represented by a frame number and the offset.
Physical Address = Frame number + page offset A data structure called page map table is used
to keep track of the relation between a page of a process to a frame in physical memory.
Deadlock prevention
Deadlock prevention is a technique used in computer science to avoid situations
where multiple processes or threads are blocked and unable to proceed because
they are waiting for each other to release resources that they need to complete
their tasks. Deadlocks can be detrimental to the performance of a system and
can cause significant delays in completing tasks. To prevent deadlocks, various
techniques such as resource allocation graph, preemptive scheduling, and
detection and recovery are used. Each of these techniques helps in ensuring that
resources are used efficiently and prevent situations where a deadlock may
occur, thereby ensuring optimal performance of the system.
Definition of Deadlock Prevention
Deadlock prevention is a technique used in computer science to avoid situations
where multiple processes or threads are blocked and unable to proceed because
they are waiting for each other to release resources that they need to complete their
tasks. The main goal of deadlock prevention is to ensure that resources are used
efficiently and that situations where a deadlock may occur are avoided. By
implementing appropriate techniques for preventing deadlocks, computer systems
can improve their efficiency, reduce delays, and avoid the risk of system failure
caused by deadlocks. Deadlock prevention techniques may include resource
allocation graph, preemptive scheduling, detection and recovery, or a combination
of these methods.
Importance of Preventing Deadlocks
Preventing deadlocks is crucial for ensuring the smooth operation and optimal
performance of computer systems. Deadlocks occur when multiple processes or
threads are blocked and unable to proceed because they are waiting for each other to
release resources that they need to complete their tasks. This can result in significant
delays in completing tasks, reduced system performance, and even system failure.
Deadlocks can be especially problematic in real-time systems, where delays can have
severe consequences. Therefore, preventing deadlocks is essential to ensure that
computer systems operate efficiently, effectively, and reliably. By implementing
appropriate techniques for preventing deadlocks, computer systems can improve their
performance, reduce delays, and avoid the risk of system failure caused by deadlocks.
Resource Allocation Graph
Resource allocation graph is a technique used for preventing deadlocks in computer
systems. In this technique, resources are represented as nodes in a directed graph, and
the edges represent the requests for resources. There are two types of edges in the
graph - request edges and assignment edges. A request edge points from a process to
a resource that the process needs, while an assignment edge points from a resource to
a process that has been allocated that resource.
Detection of cycles in the graph Explanation of resource allocation graph
Deadlocks can occur in the resource allocation graph when there is a cycle in the graph. A
cycle in the graph indicates that a process is waiting for a resource that is held by another
process that is also waiting for a resource held by the first process. This situation creates a
deadlock, and no process can proceed further.
Prevention of deadlocks using resource allocation graph
To prevent deadlocks using the resource allocation graph technique, the system must
ensure that no cycles exist in the graph. If a cycle exists, it means that a deadlock may
occur, and the system must take appropriate steps to break the cycle. This can be done by
either releasing a resource or preemptively removing a resource from a process that is
holding it. By breaking the cycle, the system ensures that no deadlock can occur.
In summary, the resource allocation graph is a useful technique for preventing deadlocks in
computer systems. It allows the system to monitor the use of resources and detect
potential deadlocks by analyzing the graph for cycles. By taking appropriate steps to break
the cycle, the system can avoid the occurrence of deadlocks and ensure the smooth
operation of the system.
Preemptive Scheduling
Preemptive scheduling is a technique used for preventing deadlocks in computer
systems. In this technique, the system is designed to preempt a process that is holding
a resource for too long. When a process is preempted, the system forces the process
to release the resource, which can then be allocated to another process that needs it.
Explanation of preemptive scheduling
To identify processes that are holding resources for too long, the system can use
various techniques such as monitoring the waiting time of processes, tracking the use
of resources, and analyzing the behavior of processes. Once the system identifies a
process that is holding a resource for too long, it can preempt that process and force it
to release the resource.
Forced release of resources to prevent deadlocks
Forced release of resources can prevent deadlocks by ensuring that resources are not
held for extended periods. When a resource is released, it can be allocated to another
process that needs it, thereby preventing a situation where multiple processes are
blocked and unable to proceed.
Preemptive scheduling can be an effective technique for preventing deadlocks, but it
may also introduce some overhead and may not be suitable for all systems.
Additionally, preemptive scheduling may impact the performance of the system if too
many processes are preempted, and resources are frequently released and allocated.
Therefore, it is important to use preemptive scheduling judiciously and evaluate its
impact on the system's performance.
Detection and Recovery
Detection and recovery is a technique used for preventing deadlocks in computer
systems. In this technique, the system periodically checks for the presence of
deadlocks and takes appropriate steps to recover from them if they occur.
Explanation of detection and recovery technique
Periodic deadlock checking: Periodic deadlock checking involves monitoring the use of
resources and analyzing the system's behavior to detect potential deadlocks. The
system can use various algorithms to detect deadlocks, such as the banker's algorithm
or the wait-for graph algorithm. Once a deadlock is detected, the system takes
appropriate recovery steps to break the deadlock and resume normal operation.
Recovery steps such as resource release and process termination
Recovery steps may involve releasing resources that are held by processes involved in
the deadlock or terminating processes that are involved in the deadlock. When a
resource is released, it can be allocated to another process that needs it, thereby
breaking the deadlock. Similarly, when a process is terminated, the resources held by
the process are released and can be allocated to other processes.
Detection and recovery is an effective technique for preventing deadlocks in computer
systems, but it may also introduce some overhead and may not be suitable for all
systems. The frequency of deadlock checking, the recovery steps taken, and the
impact of the technique on system performance must be carefully evaluated to ensure
that it is used appropriately. Additionally, the system must be designed to handle
recovery from deadlocks gracefully and without causing system disruption or data loss.
Comparison of Techniques Advantages and disadvantages of each technique
There are several techniques used for preventing deadlocks in computer systems, and each
technique has its advantages and disadvantages. The appropriate use case for each technique
depends on the system's characteristics, performance requirements, and the type of resources
being used.
Resource allocation graph: Advantages
1. Simple and easy to understand
2. Provides a visual representation of the system's resource usage
3. Can be used to detect potential deadlocks
Disadvantages
4. May not be suitable for complex systems with a large number of resources
5. Requires constant monitoring and analysis to prevent deadlocks
6. May introduce overhead and impact system performance
Appropriate use case − Resource allocation graph is suitable for systems with a small number of
resources and processes.
Preemptive scheduling: Advantages
7. Can be effective in preventing deadlocks
8. Allows the system to preempt processes that are holding resources for too long
9. Can be used in real-time systems
Disadvantages
10. May impact system performance if too many processes are preempted
11. May not be suitable for all systems
Appropriate use case − Preemptive scheduling is suitable for real-time systems where timely
execution is critical, and the system can handle the overhead introduced by preemptive
scheduling.
Detection and recovery: Advantages
1. Can detect and recover from deadlocks
2. Allows the system to recover from deadlocks without disrupting system
operations
3. Can be used in a wide range of systems
Disadvantages
4. May introduce overhead and impact system performance
5. May not be suitable for systems with strict performance requirements
Appropriate use case − Detection and recovery is suitable for systems with a large
number of resources and processes and can be used in a wide range of systems.
1. Palm OS: Since the Palm Pilot was introduced in 1996, the Palm OS platform has
provided various mobile devices with essential business tools, as well as the capability
that they can access the internet via a wireless connection. These devices have mainly
concentrated on providing basic personal-information-management applications. The
latest Palm products have progressed a lot, packing in more storage, wireless internet, etc.
2. Symbian OS: It has been the most widely-used smartphone operating system
because of its ARM architecture before it was discontinued in 2014. It was developed
by Symbian Ltd. This operating system consists of two subsystems where the first one
is the microkernel-based operating system which has its associated libraries and the
second one is the interface of the operating system with which a user can interact.
Since this operating system consumes very less power, it was developed for
smartphones and handheld devices. It has good connectivity as well as stability. It can
run applications that are written in Python, Ruby, .NET, etc.
3. Linux OS: Linux OS is an open-source operating system project which is a cross-platform
system that was developed based on UNIX. It was developed by Linus Torvalds. It is a system
software that basically allows the apps and users to perform some tasks on the PC. Linux is free
and can be easily downloaded from the internet and it is considered that it has the best
community support. Linux is portable which means it can be installed on different types of
devices like mobile, computers, and tablets. It is a multi-user operating system. Linux interpreter
program which is called BASH is used to execute commands. It provides user security using
authentication features.
4. Windows OS: Windows is an operating system developed by Microsoft. Its interface which is
called Graphical User Interface eliminates the need to memorize commands for the command
line by using a mouse to navigate through menus, dialog boxes, and buttons. It is named
Windows because its programs are displayed in the form of a square. It has been designed for
both a beginner as well professional. It comes preloaded with many tools which help the users
to complete all types of tasks on their computer, mobiles, etc. It has a large user base so there is
a much larger selection of available software programs. One great feature of Windows is that it
is backward compatible which means that its old programs can run on newer versions as well.
5. Android OS: It is a Google Linux-based operating system that is mainly designed for
touchscreen devices such as phones, tablets, etc. There are three architectures which are ARM,
Intel, and MIPS which are used by the hardware for supporting Android. These lets users
manipulate the devices intuitively, with movements of our fingers that mirror some common
motions such as swiping, tapping, etc. Android operating system can be used by anyone because
it is an open-source operating system and it is also free. It offers 2D and 3D graphics, GSM
connectivity, etc. There is a huge list of applications for users since Play Store offers over one
million apps. Professionals who want to develop applications for the Android OS can download
the Android Development Kit. By downloading it they can easily develop apps for android.
Advantages of Handheld Operating System:
Some advantages of a Handheld Operating System are as follows:
1. Less Cost.
2. Less weight and size.
3. Less heat generation.
4. More reliability.
Disadvantages of Handheld Operating System:
Some disadvantages of Handheld Operating Systems are as follows:
5. Less Speed.
6. Small Size.
7. Input / Output System (memory issue or less memory is available)
How Handheld operating systems are different from Desktop operating systems?
Since the handheld operating systems are mainly designed to run on machines that
have lower speed resources as well as less memory, they were designed in a way that
they use less memory and require fewer resources. They are also designed to work
with different types of hardware as compared to standard desktop operating systems.
It happens because the power requirements for standard CPUs far exceed the power
of handheld devices.
Handheld devices aren’t able to dissipate large amounts of heat generated by CPUs. To
deal with such kind of problem, big companies like Intel and Motorola have designed
smaller CPUs with lower power requirements and also lower heat generation. Many
handheld devices fully depend on flash memory cards for their internal memory
because large hard drives do not fit into handheld devices.
Embedded Operating system
All Embedded Systems are task specific. They mostly do a particular task on
loop/repeatedly for their entire lifetime. These systems are designed to execute
their task within a particular time interval, and thus they have to be fast enough to
be up to their time limit. They have little or no user interface like a fully automatic
washing machine does its task fully once its programmed is set and stops after its
work is finished with almost no user interface.
They are built to achieve a particularly good efficiency level. They are very small in
size operating system, need little power. These systems can't at all be upgraded or
updated. Thus, they must be really high on efficiency and reliability as they can't be
updated. This operating system is shown below −
An Embedded OS is a resource-efficient and reliable Operating System designed for
embedded computer systems. Each of the Embedded OS is expected or designed specially
to perform a specific task. It is limited to the given hardware or the particular device.
Characteristics Embedded OS
The characteristics of the embedded operating systems are as follows −
All Embedded Systems are task specific. They mostly do a particular task on
loop/repeatedly for their entire lifetime. All embedded systems are designed to execute
their task within a particular time interval, and thus they have to be fast enough to be up to
their time limit.
They have little or no user interface like a fully automatic washing machine does its task
fully once its programmed is set and stops after its work is finished with almost no user
interface.
They are built to achieve a particularly good efficiency level. They are very small in size
and, need little power. These systems can't at all be upgraded or updated. Thus, they must
be really high on efficiency and reliability as they can't be updated.
Roles of Embedded OS
The roles performed by embedded operating system are as follows −
1. Resource allocator: The role of a resource allocator is to act as a manager. The basic task is to
manage the resources of both the hardware and software to allocate and assign them to the
specific program and user. It helps in the proper use of the OS and also supports the better
execution of the programs.
2. Resource controller: The role of the resource controller is to help the programmer and the
system manager in the creation and the controlling of the subsystem. This task is accomplished
with the help of a certain set of commands and subroutines.
3. Resource monitor: The role of the Resource monitor is to act as a utility in the Windows
Operating System to let the user monitor the use of the hardware that is, CPU, memory,
disk, and network along with the software that is various file handles and modules. This
task is done in real-time and the performance of the OS is improved and utilized as per the
requirement.
4. User-friendly interface: The User interface, usually termed as UI is the medium with the
help of which a user or person interacts with the hardware or the software to get his
required task complete.
Now, the interface which is designed in such a manner that it does not confuse the user
and the user can easily interact with the system is called a User-friendly interface. If the
User interface of a given software or hardware is User-friendly then it gains trust and the
confidence of the user increases respectively. It is more demanded over a normal interface.
Advantages
1. The advantages of embedded operating system are as follows −
2. Portable
3. Much faster than other operating systems
4. Less Hardware requirement
5. Highly Predictable
Disadvantages
6. The disadvantages of embedded operating system are as follows −
7. Less optimization
8. High modification is required
9. Customization is time taking process