OS chap#2
OS chap#2
system
Chap#2
Objectives
• Operating-System Services
• User and Operating-System Interface
• System Calls
• System Programs
• An operating system provides an
environment for the execution of programs.
Operatin It provides certain services to programs and
g-System to the users of those programs. The specific
services provided, of course, differ from one
Services operating system to another, but we can
identify common classes.
Operating-System Services
Operating-System Services
• User interface.
• Program execution.
• I/O operations
• File-system manipulation.
• Communications
• Error detection.
• Resource allocation
• Accounting.
• Protection and security
User and Operating-
System Interface
There are several ways for users to interface with the operating system. Here, we discuss
two fundamental approaches.
• One provides a command-line interface, or command interpreter, that allows users to
directly enter commands to be performed by the operating system.
• The other allows users to interface with the operating system via a graphical user
interface.
System Calls
• Basically the system calls is an instruction that request the OS to perform the desired
operation that needs 'Hardware Access or other privileged operations.
• System calls provide an interface to the services made available by an operating
system.
• System calls is a programmatic way in a computer program requests a service from
the kernel of an operating system.
• These calls are generally available as routines written in C and C++,
Types of System Calls