Unit 1 - Understanding The Principles of Operating System
Unit 1 - Understanding The Principles of Operating System
PRINCIPLES OF
OPERATING SYSTEM
UNIT 1: UNDERSTANDINGTHE PRINCIPLES OF OPERATING SYSTEM
• Operation system
• Computer Structures
• Operating System Structures
What is an Operating System?
• Following are some of the important activities that Operating System does.
• Security: By means of password and similar other techniques, preventing
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 software and users: Coordination and assignment of
compilers, interpreters, assemblers and other software to the various users of the
computer systems.
Types of Operating Systems
• Operating systems are there from the very first computer generation.
Operating systems keep evolving over the period of time. Following
are few of the important types of operating system which are most
commonly used.
• Batch operating system
• Time-sharing operating systems
• Distributed operating system
• Network operating system
• Real time operating system
Batch operating system
• With resource sharing facility 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.
Network operating System
• Hard real-time systems • Soft real time systems are less restrictive.
guarantee that critical tasks • Critical real-time task gets priority over
complete on time. other tasks and retains the priority until
it completes.
• In hard real-time systems • Soft real-time systems have limited utility
secondary storage is limited or than hard real-time systems.
missing with data stored in • For example, Multimedia, virtual reality,
ROM. Advanced Scientific Projects like
undersea exploration and planetary
• In these systems virtual memory rovers etc
is almost never found.
Operating System Services
• Operating system handles many kinds of activities from user programs to system
programs like printer spooler, name servers, file server etc. Each of these activities is
encapsulated as a process.
• A process includes the complete execution context (code to execute, data to
manipulate, registers, OS resources in use).
• Following are the major activities of an operating system with respect to program
management.
• Loads a program into memory.
• Executes the program.
• Handles program's execution.
• Provides a mechanism for process synchronization.
• Provides a mechanism for process communication.
• Provides a mechanism for deadlock handling.
I/O Operation
• In case of distributed systems which are a collection of processors that do not share
memory, peripheral devices, or a clock, operating system manages communications
between processes.
• Multiple processes with one another through communication lines in the network.
• OS handles routing and connection strategies, and the problems of contention and
security.
• Following are the major activities of an operating system with respect to
communication.
• Two processes often require data to be transferred between them.
• Both processes can be on the one computer or on different computer but are connected
through computer network.
• Communication may be implemented by two methods either by Shared Memory or by Message
Passing.
Error handling