Unit-1 OS KCS-401
Unit-1 OS KCS-401
(BCS-401)
• User Interface
• Program Execution
• I/O Operation
• File System
Manipulation
• Communication(Inter-
process
Communication)
• Error Detection
• Resource Allocation
OS Services view of computer
• Accounting
• Protection & Security
Operating System Services
Operating system services provides functions that are helpful to
the user.
User interface:
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.
Graphical user interface (GUI) 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.
OPERATING SYSTEMS (BCS-401)
(Dr. Sanjeev Kumar, Associate Professor, IT Dept. )
Operating System Services (cont.)
Program execution. The system must be able to load a program into
memory and to run that program. The program must be able to end its
execution, either normally or abnormally (indicating error).
I/O operations. A running program may require I/O, which may involve
a file or an I/O device. For efficiency and protection, users usually cannot
control I/O devices directly. Therefore, the operating system must provide
a means to do I/O.
File-system manipulation. programs need to read and write files and
directories. They also need to create and delete them by name, search for a
given file, and list file information. Some operating systems include
permissions management to allow or deny access to files or directories
based on file ownership.
OPERATING SYSTEMS (BCS-401)
(Dr. Sanjeev Kumar, Associate Professor, IT Dept. )
Operating System Services (cont.)
Communications. There are many circumstances in which one process
needs to exchange information with another process. Such communication
may occur between processes that are executing on the same computer or
between processes that are executing on different computer systems tied
together by a computer network.
Communications may be implemented via shared memory, in which
two or more processes read and write to a shared section of memory, or
message passing, in which packets of information in predefined formats
are moved between processes by the operating system.
Interaction Interacted Accessed by users Accessed indirectly Invoked by Interprets user Accessed by Loaded and Executes
with to perform tasks by applications applications to commands and applications executed by the automatically
directly by such as file through function request services or provides an through system operating system during the boot
users management, disk calls or system perform interface for users calls to perform to manage process before the
through formatting, or calls. operations that to interact with the tasks such as communication operating system is
graphical system diagnostics. require privileged operating system. process with hardware loaded, with no
interfaces access. scheduling, devices. direct user
or memory interaction.
command- management, and
line I/O operations.
interfaces.
Examples Word Disk formatting System call APIs Functions like Command prompt Windows Kernel, Drivers for BIOS (Basic
processors, utilities, file provided by open, read, write, (e.g., Command Linux Kernel, printers, graphics Input/Output
web management tools, operating systems close, fork, exec in Prompt in macOS Kernel. cards, network System), UEFI
browsers, disk such as Windows Unix-like systems. Windows, Terminal adapters, storage (Unified Extensible
media defragmenters. API, POSIX API. in Unix-like devices. Firmware
players, systems). Interface).
Crit Applications System System Call System Call Shell OS Kernel Device Drivers BIOS
eria Programs Programs Interface
Priv Typically run Can be executed Runs with Executed with Typically runs Runs with Run with Executes with
ileg with user-level with user-level elevated user-level with user-level kernel-levelelevated elevated
es privileges. or elevated privileges to privileges, but privileges, but privileges to
privileges to privileges during
privileges interact with invokes kernel- can be elevated manage system
access hardware the boot process
depending on kernel-mode mode to perform resources and
directly and to initialize
the task. components. components for administrative provide coreperform hardware
privileged tasks. services. privileged components and
operations. operations. perform low-
level system
initialization.
Invo Invoked by users Invoked by users Invoked by Invoked by Interpreted and Always running Loaded and Automatically
cati to accomplish or system applications applications executed by the as part of the executed by the executed by the
on specific tasks or administrators through function through system operating operating operating hardware during
goals. to manage or calls or system calls to perform system in system, system as the boot process
configure the calls to request privileged response to user managing needed to to initialize
system. services. operations. commands. system manage hardware
resources and hardware components and
providing core devices. establish basic
services. system
functionality.
Booting Process in brief.
Power On:
You power on the computer by pressing the power button.
BIOS Initialization:
The Basic Input/Output System (BIOS) performs a Power-On Self-Test (POST) to check hardware components'
integrity.
BIOS initializes hardware components such as the CPU, memory, and storage devices.
Boot Device Detection:
BIOS detects bootable devices such as hard drives or SSDs.
Master Boot Record (MBR) Detection:
BIOS locates the Master Boot Record (MBR) on the primary boot device.
Bootloader Execution:
BIOS loads the bootloader code from the MBR into memory.
The bootloader continues the boot process by loading the operating system kernel.
Operating System Boot:
The operating system kernel initializes system resources and launches system services.
The graphical user interface (GUI) or command-line interface (CLI) is loaded.
Open required applications and run.
End of Unit-1
Test Scheduled in next class
Prepare well