Os
Os
Os
Q. List and draw a neat labelled diagram of four components of a computer system.-4m
A computer system can be divided into four components:
1) The hardware.
2) The operating system
3) Application programs
4) The users
Hardware: Hardware is physical parts of machine which provides basic computing resources. The hardware
devices are Central Processing Unit (CPU), Memory, Input Devices (Keyboard, Mouse, Microphone, Web
Camera, Scanner etc.), Output Devices (Printer, Monitor, Plotter, Speakers etc.), Networking devices (LAN Card,
Router, Hub, Switches, Modem etc.) and other devices like Motherboard, Power Supply, DVD Writer etc.
Operating System: An operating system is a software program that enables the computer hardware to
communicate and operate with the computer software. Without a computer operating system, a computer and
software programs would be useless. Examples of computer operating systems are Microsoft Windows 7/8/10,
Apple Mac-OS, Ubuntu Linux, Google Android, iOS and so on.
Application Programs: Word processors, spreadsheets, compilers, web browsers, database systems, video
games etc., are the example of application programs that define the way in which these resources are used to
solve the computing problems of the users. The operating system controls and co-ordinates the use of the
hardware among the various application programs for the various users. Applications are readymade packages
ready to use such as Microsoft Office 2010 package includes MS Excel, MS Word, MS PowerPoint etc.
Users: On the basis of the role of the users, they can be categorized as:
Programmers are the designers or producers of the software developed for themselves or others.
Operational Users are the users responsible for installation of the software, proper maintenance of
software, making it available to the users.
End Users are the actual users of the applications and performed specified tasks as per defined.
Vijay T. Patil
1
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Q. What are the Objectives of Operating System
1. Convenience: An Operating System makes a computer more convenient to use.
2. Efficiency: An Operating System allows the computer system resources to be used in an efficient
manner.
3. Ability to evolve: An Operating System should be constructed in such a way as to permit the effective
development, testing, Executing and introduction of new system functions without interfacing with
service.
The main purpose of an Operating system of a computer is to initiate, activate and accomplish many
tasks to be executed by the computer hardware easily, effectively and efficiently.
In simple terms, an operating system is a collection of software modules, which are mainly used for
managing the hardware of a specific computer. It serves as an interface between the computer
hardware and the users.
Vijay T. Patil
2
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
hardware and software in same manner as they do local resources. Examples of distributed operating
systems includes LOCUS Distributed OS (based on UNIX), OSF/1 OS, IRIX OS, Solaris etc.
Time Sharing OS: In time sharing OS, a number of simultaneous users are there and each user is given
a trivial amount of time (a quantum/time slice) in which he/she processes interactively or
conversationally. UNIX, Windows NT and Windows XP are examples of this type of operating system.
Multi-tasking OS: It allows executing more than one task at the same time. An operating system that is
capable of allowing multiple software processes to run at the same time. Some examples of multi-
tasking operating systems are UNIX and Windows 2000 Windows XP, Windows 7, Windows Vista etc.
Network Operating System (NOS): A network operating system is a collection of software and
associated protocols that allows a set of autonomous computers, which are interconnected by a
computer network to be used together in a convenient and cost-effective manner. Examples of network
operating system are BSD (Berkeley System Distribution), MS LAN Manager, Windows- NT, UNIX,
Microsoft Windows Server 2003, Novell's NetWare, Microsoft Windows Server 2008 and so on.
Mobile Operating System: A mobile operating system also called a mobile OS. It is an operating system
that is specifically designed to run on mobile devices such as mobile phones, smartphones, PDAs, tablet
computers and other handheld devices. Examples of mobile operating systems includes Symbian OS,
Windows CE, Apple iOS, Windows Phone and Google Android.
User View: The user view depends on the system interface that is used by the users.
If the user is using a personal computer, the operating system is largely designed to make the interaction
easy. Some attention is also paid to the performance of the system, but there is no need for the
operating system to worry about resource utilization. This is because the personal computer uses all
the resources available and there is no sharing.
If the user is using a system connected to a mainframe or a minicomputer, the operating system is
largely concerned with resource utilization. This is because there may be multiple terminals connected
Vijay T. Patil
3
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
to the mainframe and the operating system makes sure that all the resources such as CPU, memory, I/O
devices etc. are divided uniformly between them.
If the user is sitting on a workstation connected to other workstations through networks, then the
operating system needs to focus on both individual usage of resources and sharing though the network.
This happens because the workstation exclusively uses its own resources but it also needs to share files
etc. with other workstations across the network.
If the user is using a handheld computer such as a mobile, then the operating system handles the
usability of the device including a few remote operations. The battery level of the device is also taken
into account.
There are some devices that contain very less or no user view because there is no interaction with the
users. Examples are embedded computers in home devices, automobiles etc.
System View
According to the computer system, the operating system is the bridge between applications and hardware. It is
most intimate with the hardware and is used to control it as required. The different types of system view for
operating system can be explained as follows:
The system views the operating system as a resource allocator. There are many resources such as CPU
time, memory space, file storage space, I/O devices etc. that are required by processes for execution. It
is the duty of the operating system to allocate these resources judiciously to the processes so that the
computer system can run as smoothly as possible.
The operating system can also work as a control program. It manages all the processes and I/O devices
so that the computer system works smoothly and there are no errors. It makes sure that the I/O devices
work in a proper manner without creating problems.
Operating systems can also be viewed as a way to make using hardware easier.
Computers were required to easily solve user problems. However, it is not easy to work directly with
the computer hardware. So, operating systems were developed to easily communicate with the
hardware.
An operating system can also be considered as a program running at all times in the background of a
computer system (known as the kernel) and handling all the application programs. This is the definition
of the operating system that is generally followed.
Vijay T. Patil
4
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
A batch system is one in which jobs are bundled together with the instruction necessary to allow them
to be processed without intervention. Often jobs of a similar nature can be bundled together to further
increase economy.
Common input devices were card readers and tape drives. The basic physical layout of the memory of
batch job computer is shown in fig.
The OS was simple; its major task was to transfer control from one job to the next. The job was
submitted to the computer operator in form of punch cards. At some later time, the output appeared.
The Batch Contains the Jobs and all those jobs will be executed without the user Intervention.
And Operating System will use the LOAD and RUN Operation. This will first LOAD the Job from the
Card and after that he will execute the instructions. By using the RUN Command.
The OS was always resident in memory. Often magnetic tapes and drums were used to store
intermediate data and compiled programs.
Example: Payroll system, stock control and billing systems.
Vijay T. Patil
5
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Q. Explain 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.
Vijay T. Patil
6
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Advantages of spooling
The spooling operation uses a disk as a very large buffer.
Spooling is capable of overlapping I/O operation for one job with processor operations for another
job.
In above figure, the user 5 is active but user 1, user 2, user 3, and user 4 are in waiting state whereas user 6 is
in ready status.
Vijay T. Patil
8
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Asymmetric multiprocessing:
Each processor is assigned a specific task; master processor schedules and allocated work to slave
processors.
More common in extremely large systems.
Vijay T. Patil
10
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Advantages of Distributed OS:
With resource sharing facility, a user at one site may be able to use the resources available at another.
Speedup the exchange of data with one another via electronic mail.
If one site fails in a distributed system, the remaining sites can potentially continue operating.
Better service to the customers.
Reduction of the load on the host computer.
Reduction of delays in data processing.
Disadvantages of Distributed OS:
Security problem due to sharing
Some messages can be lost in the network system
Bandwidth is another problem if there is large data then all network wires to be replaced which tends
to become expensive
Overloading is another problem in distributed operating systems
If there is a database connected on local system and many users accessing that database through
remote or distributed way, then performance become slow
The databases in network operating is difficult to administrate then single user system
Advantages of Android:
Android is based on Linux. This facilitates easy accessibility to rich development environment and core
functionality of the mobile device.
It provides rich browser facilities as well. This facilitates the developer to provide enhanced services.
Android OS is open source and it is cost effective.
It is a multi-tasking OS and can be virtualized.
It is flexible OS. Widgets, or self-contained programs, add functionality and flexibility to Android devices.
The development tools are easy to use.
Vijay T. Patil
11
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Stability and security is better than other mobiles OS as it is based on Linux Kernel.
Android is highly customizable. User can change almost everything in the UI.
Disadvantages of Android:
Application quality of Android is is not so good. There is no standard for these applications.
Complex layouts and animations are harder to code in Android.
Low security to steal your info from unknown resources.
Android OS can also slow down if installing more apps.
The complexity involved in Android app development makes the process more time-consuming than
that of an iOS app.
Q. Explain iOS
iOS (formerly iPhone OS) is a mobile operating system created and developed by Apple Inc. exclusively
for its hardware. It is the operating system that presently powers many of the company's mobile
devices, including the iPhone, iPad, and iPod Touch.
It is the second most popular mobile operating system globally after Android.
The iOS user interface is based upon direct manipulation, using multi-touch gestures. Interface control
elements consist of sliders, switches, and buttons.
Interaction with the OS includes gestures such as swipe, tap, pinch, and reverse pinch, all of which have
specific definitions within the context of the iOS operating system and its multi-touch interface.
Advantages of iOS:
iOS provides high customer service.
iOS has more security which offers its users stay safe from external threats.
Performance is awesome and supports Multitasking.
iOS support a vast number of applications.
Disadvantages of iOS:
Not flexible only supports iOS devices.
The iOS is not Open Source.
The main disadvantages of using iOS is costly Apps development.
Not customizable.
Vijay T. Patil
12
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Vijay T. Patil
13
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Dos contains the layers for application program, system program, MS-DOS device drivers and ROM BIOS device
drivers.
Application Program: These programs perform a particular function directly for the users. In other
words, these programs provide an application to the end users, so they are known as application
programs.
System Program: The system programs are used to program the operating system software. While
application programs provide software that is used directly by the user, system programs provide
software that is used by other systems.
MS-DOS device drivers: Most of the device drivers on MS-DOS are part of the operating system such as
keyboard and screen console drivers, floppy and hard-disk drivers, printer port driver, serial port driver
etc.
ROM BIOS device drivers: The BIOS drivers are the programs stored in the EPROM or EEPROM memory
chips on the motherboard. These are the basic drivers needed to start the computer system. BIOS stands
for Basic Input/Output System.
Vijay T. Patil
14
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Hardware:
The hardware is Centre of structure that provides the Operating System with basic services.
The hardware consists of all peripherals like memory (RAM, HDD, FDD etc) processor, mouse, and other
input devices, terminals, printers etc.
The Kernel:
The kernel is the heart of the system - a collection of programs mostly written in ‘C’ which communicate
with the hardware directly.
Kernel is an interface between hardware of the system and shell. It is loaded into the memory when the
system is booted.
User programs that need to communicate with the hardware use the services of the kernel, which
performs the job on the user’s behalf.
It manages the system’s memory, schedules processes, decides their priorities and performs other
tasks.
Shell:
The shell is an interface between the user and the kernel that isolates the user from knowledge of kernel
functions.
The shell accepts the commands keyed by the users and checks for their syntax and gives out error
messages if something goes wrong.
It is a command interpreter of user requests.
Application programs:
The various compilers for languages like c, c++, pascal, fortran and other application programs written
by programmers which are used by users for their operations falls in this layers.
Only those persons who maintain on “account” with the computer system can use the UNIX system.
User can directly access application programs through which they can interact with the system.
Vijay T. Patil
15
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Init process: init initialises system processes, places system in multi-user mode unless single user mode
is specified, sets the computer name and environment variables such as PATH and HOME checks the
file system with fsck command, deletes temporary files, initiates network services and starts the
/etc/getty process.
Getty: initiates individual terminal lines. It periodically checks for terminals that are switched ON. After
terminal is ON, it prints the login prompt, prompting for users login name, once user enters a login
name, getty spawns or starts the login process for that terminal.
Login: The login process prompts the user for a password. It validates the login name and the password
against the entry in the /etc/passwd file and the /etc/shadow file. The users shell specified in the Home
directory.
Shell: The shell prints the Unix prompt and executes user commands when user logs out, sh is taken
over by login to allow the next user to log in.
Q. Give the comparison between UNIX and LINUX operating system. (Any four points) – 4m
Linux Unix
What is it? Linux is an example of Open Source Unix is an operating system that is
software development very popular in universities,
and Free Operating System companies, big enterprises etc.
(OS).
Cost Linux can be freely distributed, Different flavors of Unix have
downloaded freely, distributed different cost structures according to
through magazines, Books etc. vendors
There are priced versions for
Linux also, but they are
normally cheaper than
Windows.
User Everyone. From home users to Unix operating systems were
developers and computer developed mainly for mainframes,
enthusiasts alike. servers and workstations except
OSX, Which is designed for
everyone. The Unix environment
and the client-server program
model were essential elements in
the development of the Internet
Manufacturer Linux kernel is developed by the Three bigest distributions are Solaris
community. Linus Torvalds oversees (Oracle), AIX (IBM) & HP-UX Hewlett
things. Packard. And Apple Makes OSX, an unix
based os..
Usage Linux can be installed on a wide variety of The UNIX operating system is used in
computer hardware, ranging from internet servers, workstations & PCs.
mobile phones, tablet computers and Backbone of the majority of finance
Vijay T. Patil
16
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
video game consoles, to mainframes and infrastructure and many 24x365 high
supercomputers. availability solutions.
Development Linux is developed by Open Source Unix systems are divided into various other
and development i.e. through sharing and flavors, mostly developed by AT&T as well
Distribution collaboration of code and features as various commercial vendors and non-
through forums etc and it is distributed profit organizations
by various vendors.
GUI Linux typically provides two GUIs, KDE Initially Unix was a command based OS, but
and Gnome. But there are millions of later a GUI was created called Common
alternatives such as LXDE, Xfce, Unity, Desktop Environment. Most distributions
Mate, twm, ect. now ship with Gnome.
File system Ext2, Ext3, Ext4, Jfs, ReiserFS, Xfs, Btrfs, jfs, gpfs, hfs, hfs+, ufs, xfs, zfs format
support FAT, FAT32, NTFS
Text mode BASH (Bourne Again SHell) is the Linux Originally the Bourne Shell. Now it's
interface default shell. It can support multiple compatible with many others including
command interpreters. BASH, Korn & C.
Price Free but support is available for a price. Some free for development use (Solaris)
but support is available for a price.
Security Linux has had about 60-100 viruses listed A rough estimate of UNIX viruses is
till date. None of them actively is between 85 -120 viruses reported till date.
spreading nowadays.
Threat In case of Linux, threat detection and Because of the proprietary nature of the
detection and solution is very fast, as Linux is mainly original Unix, users have to wait for a while,
solution community driven and whenever any to get the proper bug fixing patch. But
Linux user posts any kind of threat, these are not as common.
several developers start working on it
from different parts of the world
Examples Ubuntu, Fedora, Red Hat, Debian, OS X, Solaris, All Linux
Archlinux, Android etc.
Inception Inspired by MINIX (a Unix-like system) In 1969, it was developed by a group of
and eventually after adding many AT&T employees at Bell Labs and Dennis
features of GUI, Drivers etc, Linus Ritchie. It was written in “C” language and
Torvalds developed the framework of the was designed to be a portable, multitasking
OS that became LINUX in 1992. The and multi-user system in a time-sharing
LINUX kernel was released on 17th configuration
September, 1991
Vijay T. Patil
17
Operating System (22516) Ch-1 Overview of Operating System Marks: 08
Vijay T. Patil
18