OSY 1st Unit Notes
OSY 1st Unit Notes
1)Hardware
2)operating system
3) Application programs
4) Users
1] Hardware:
Hardware refers to the physical components of a computer that
the OS manages and controls.
Example: Input Devices, output Devices, Memory, Motherboard, CPU etc.
2] operating system:
Operating System (OS) is a collection of programs that acts
as an interface between a user of a computer and the computer hardware.
Example: Linux, Ubuntu, MSDOS, Unix, Windows etc.
3] Application programs:
Application programs in the context of an operating
system (OS) are software applications designed to perform specific tasks for
users. Unlike system software, which manages and operates the hardware,
application programs directly address user needs and tasks.
Example: Web Browsers, Media Player, Productivity Software, Graphic Design
Software etc.
4] users:
Users refer to individuals or entities that interact with the computer
system to perform tasks or access resources.
Types of Users:
1. End Users
1. System Administrators
2. Developers
1] User View:
The user view depends on the system interface that is used by the users. The
different types of user view experiences can be explained as follows:
▪ 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 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.
▪ 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.
2] 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.
Q.5] Explain Types of Operating System
1. Batch processing Operating System:
Batch processing is a technique in which an Operating System collects the
programs and data together in a batch before processing starts. An operating
system does the following activities related to batch processing –
▪ The OS defines a job which has predefined sequence of commands,
programs and data as a single unit.
▪ The OS keeps a number a jobs in memory and executes them without any
manual information.
▪ Jobs are processed in the order of submission, i.e., first come first served
fashion.
▪ When a job completes its execution, its memory is released and the output
for the job gets copied into an output spool for later printing or processing.
Advantages: -
1. Batch processing takes much of the work of the operator to the computer.
2. Increased performance as a new job gets started as soon as the previous job
is finished, without any manual intervention.
Disadvantages-
1. Difficult to debug program.
2. A job could enter an infinite loop.
3. Due to lack of protection scheme, one batch job can affect pending jobs.
2. Multitasking Operating System:
Multitasking is when multiple jobs are executed by the CPU
simultaneously by switching between them. Switches occur so frequently
that the users may interact with each program while it is running.
An OS does the following activities related to multitasking –
▪ The user gives instructions to the operating system or to a program
directly, and receives an immediate response.
▪ The OS handles multitasking in the way that it can handle multiple
operations/executes multiple programs at a time.
▪ Multitasking Operating Systems are also known as Time-sharing
systems.
▪ These Operating Systems were developed to provide interactive use of
a computer system at a reasonable cost.
▪ A time-shared operating system uses the concept of CPU scheduling
and multiprogramming to provide each user with a small portion of a
time-shared CPU.
▪ Each user has at least one separate program in memory.
Advantages-
1. High and efficient CPU utilization.
2. User feels that many programs are allotted CPU almost simultaneously.
Disadvantages-
1. CPU scheduling is required.
2. To accommodate many jobs in memory, memory management is required
4.Time-sharing operating system:
▪ Time-sharing is a technique which enables many people, located at various
terminals, to use a particular computer system at the same time. Time-sharing
or multitasking is a logical extension of multiprogramming. Processor's time
which is shared among multiple users simultaneously is termed as time-
sharing.
▪ The main difference between Multiprogrammed Batch Systems and Time-
Sharing Systems is that in case of Multiprogrammed batch systems, the
objective is to maximize processor use, whereas in Time-Sharing Systems, the
objective is to minimize response time.
▪ Multiple jobs are executed by the CPU by switching between them, but the
switches occur so frequently. Thus, the user can receive an immediate
response. For example, in a transaction processing, the processor executes
each user program in a short burst or quantum of computation. That is, if n
users are present, then each user can get a time quantum. When the user
submits the command, the response time is in few seconds at most.
▪ The operating system uses CPU scheduling and multiprogramming to provide
each user with a small portion of a time. Computer systems that were designed
primarily as batch systems have been modified to time-sharing systems.
Advantages:
1. Provides the advantage of quick response.
2. Avoids duplication of software.
3. Reduces CPU idle time.
Disadvantages:
1. Problem of reliability.
2. Question of security and integrity of user programs and data.
3. Problem of data communication.
5.Multiprocessor System:
1] Symmetric Multiprocessors:
▪ In these types of systems, each processor contains a similar copy of the
operating system and they all communicate with each other. All the processors
are in a peer-to-peer relationship i.e. no master - slave relationship exists
between them.
▪ An example of the symmetric multiprocessing system is the Encore version of
Unix for the Multimax Computer.
2] Asymmetric Multiprocessors:
▪ In asymmetric systems, each processor is given a predefined task. There is a
master processor that gives instruction to all the other processors. Asymmetric
multiprocessor system contains a master slave relationship.
▪ Asymmetric multiprocessor was the only type of multiprocessor available
before symmetric multiprocessors were created. Now also, this is the cheaper
option.
Advantages of multiprocessor systems:
1. High Reliability: As multiple processors share their work between one and
another so work is completed with collaboration. That means these systems are
reliable.
2. Economic: As more work is completed by the CPU’s so these systems are
economically good as well.
3. Increased throughout: As several processors increase, more work can be done
in less
4. More reliable Systems: In a multiprocessor system, even if one processor
fails, the system will not halt. This ability to continue working despite hardware
failure is known as graceful degradation.
Disadvantages of multiprocessor systems:
1. Communication: As multiple processors are communicating with each other
so the operating system implementation is complex to handle.
2. More memory required: As there are multiprocessors working with each
other so each processor needs memory space.
3. Deadlock: If any processor is already using the I/O device then other
processors cannot use the same I/O device which creates deadlock.
4. Expensive: These types of systems are expensive to buy.
6. Distributed operating System:
A distributed system contains multiple nodes that are physically separate but
linked together using the network. All the nodes in this system communicate with
each other and handle processes in tandem. Each of these nodes contains a small
part of the distributed operating system software.
A diagram to better explain the distributed system is −
Advantages:
1. GUIs are easy to use, operate and provide better accessibility.
2. User can switch quickly between the task on the GUI interface.
3. GUI allows multiple programs and its instances to be displayed
simultaneously.
4. GUI is convenient and user-friendly.
Disadvantages:
1. It uses more Computer memory.
2. GUI become more complex if user needs to communicate with the
computer directly
3. Difficult to display all necessary control because of Limited
Windows space.
4. Slow speed because of long pointer operation.
Example:
1.Windows
2.Linux
1.Windows:
▪ Its series of operating system developed by the Microsoft.
▪ Each version of Windows includes graphical user interface with desktop that
allows a user to view a file.
▪ Microsoft Windows is designed for both home computer and professional
purpose fast version of Windows includes Windows 3.0(1990), Windows 3.1
(1992), Windows 95 (1995), Windows 98(1998), Windows
ME(2000),Windows XP (2001) Windows Vista(2006),Windows 7(2009) etc.
The Current version Windows 10 was release on 29 July 2015.
2.Linux:
▪ Linux is unix-like operating system created by LinusTorvalds. Linux each
Freely Distributed Operating System. Today Linux is used by millions of
people around the world programmer can even modify the source code and
create their own unique version of the Linux operating system.
▪ Some of the popular version of Linux Red Hat Enterprise, cent OS, and
Ubuntu.
▪ Most Linux System provide either K Desktop environment (KDE) or GNOME
interface. GNOME stands for GNU network object model environment is one
of the oldest and most widely used Linux Desktop Environment.
Difference between CLI and GUI
Difference between Multitasking and Multiprogramming