unit2osy
unit2osy
unit2osy
02
Services & Components
of Operating System
Different Services of OS
An operating system (OS) creates a supportive
environment for running programs, offering
various services to both the programs and their
users. These operating system services are
provided for the convenience of the programmer,
to make the programming task easier.
User interface
• Almost all operating systems have a user interface (UI). This
interface can take several forms. One is a command-line
interface (CLI), which uses text commands and a method for
entering them (say, a keyboard for typing in commands in a
specific format with specific options).
• Another is a batch interface, in which commands and
directives to control those commands are entered into files,
and those files are executed. Most commonly, a graphical
user interface (GUI) is used. Here, the interface is a window
system with a pointing device to direct I/O, choose from
menus, and make selections and a keyboard to enter text.
Some systems provide two or all three of these variations.
• Program Execution:
Loading and Running Programs: The operating
system must be capable of loading a program into
memory and executing it.
Termination: The program should be able to
terminate its execution, whether it ends normally
or encounters an error.
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 Operations
A running program may require I/O, which may
involve a file or an I/O device.
An I/O subsystem comprises of I/O devices and
their corresponding driver software.
An Operating System manages the communication
between user and device drivers. I/O operation
means read or write operation with any file or any
specific I/O device.
Operating system provides the access to the
required I/O device when required.
File-System Manipulation