Chapter-II Services & Components of Os
Chapter-II Services & Components of Os
OSY - 22516
UNIT-II
SERVICES & COMPONENTS OF OS
1. User Interface
2. Program Execution
3. I/O Operations
5. Communication
6. Error Detection
DIFFERENT SERVICES OF OS
USER INTERFACE
Almost all operating systems have a user interface (UI)
PROGRAM EXECUTION
The system must be able to load a program into memory
and to run that program, end execution, either normally
or abnormally (indicating error)
DIFFERENT SERVICES OF OS
I/O OPERATIONS
FILE-SYSTEM MANIPULATION
in user program
2. File Manipulation
3. Device Manipulation
4. Information Maintenance
5. Communications
SYSTEM CALLS
• PROCESS CONTROL
• Request device
• Release device
• read
• write
• reposition
• Get device attributes
• Set device attributes
SYSTEM CALLS
• INFORMATION MAINTENANCE
• Process needs resources to accomplish its task CPU, memory, I/O, files etc.
• Typically system has many processes, some user, some operating system
running concurrently on one or more CPUs.
• Block devices − A block device is one with which the driver communicates
by sending entire blocks of data. For example, Hard disks, USB cameras,
Disk-On-Key etc.
• Shared devices
– These devices can be allocated to several processes.
• Virtual Devices
– These devices are the combination of the first two types and they are
dedicated devices which are transformed into shared devices.
USE OF OPERATING SYSTEM TOOLS
• PERFORMANCE MONITOR
• Performance Monitor (known as System
Monitor in Windows) is a system monitoring program which
monitors various activities on a computer such as CPU or
memory usage.
• This type of application may be used to determine the cause
of problems on a local or remote computer by measuring the
performance of hardware, software services, and
applications.
USE OF OPERATING SYSTEM TOOLS
• TASK SCHEDULER
• The process scheduling is the activity of the process manager that handles
the removal of the running process from the CPU and the selection of
another process on the basis of a particular strategy.
• Their main task is to select the jobs to be submitted into the system and to
decide which process to run.
USE OF OPERATING SYSTEM TOOLS
• Schedulers are of three types −
• Long-Term Scheduler
• It is also called a job scheduler.
• Short-Term Scheduler
• It is also called as CPU scheduler.
• Medium-Term Scheduler
• Medium-term scheduling is a part of swapping.