Unit -1
SYSTEM COMPONENTS AND SYSTEM CALLS IN OPERATING SYSTEM
BY RAM K PALIWAL
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 1
System Components
The architecture of Windows Operating System is a layered
system of modules.
◦ The main layers are the HAL, the kernel, and the executive, all of
which run in kernel mode, and a collection of subsystems and
services that run in user mode.
◦ The user-mode subsystems fall into two categories:
◦ the environmental subsystems, which emulate different operating systems.
◦ protection subsystems, which provide security functions.
◦ One of the chief advantages of this type of architecture is that
interactions between modules are kept simple. The remainder of
this section describes these layers and subsystems.
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 2
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 3
System Components
Main Components are
◦ Hardware Abstraction Layer
◦ Kernel
◦ Executive Section
Hardware abstraction Layer
The HAL is the layer of software that hides hardware chipset differences from
upper levels of the operating system. The HAL exports a virtual hardware
interface that is used by the
◦ kernel dispatcher
◦ The executive,
◦ the device drivers.
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 4
System Components
Kernel
The kernel layer of Windows has four main responsibilities:
◦ thread scheduling
◦ low-level processor synchronization
◦ interrupt and exception handling
◦ switching between user mode and kernel mode
Executive
The Windows executive provides a set of services that all environmental
subsystems use. The services are grouped as follows:
◦ object manager
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 5
System Components
◦ virtual memory manager
◦ process manager
◦ advanced local procedure call facility
◦ I/O manager
◦ cache manager
◦ security reference monitor
◦ plug-and-play and power managers
◦ Registry
◦ booting.
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 6
System Calls
System calls provide an interface to the services made available by
an operating system.
These calls are generally available as routines written in C and C++,
although certain low-level tasks (for example, tasks where hardware
must be accessed directly) may have to be written using assembly-
language instructions.
Before we discuss how an operating system makes system calls
available, let’s first use an example to illustrate how system calls are
used: writing a simple program to read data from one file and copy
them to another file.
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 7
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 8
System Calls
Types of System Calls
1. Process control
2. File manipulation
3. Device manipulation
4. Information maintenance
5. Communications
6. Protection.
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 9
System Calls
Process control
◦ end, abort
◦ load, execute
◦ create process, terminate process
◦ get process attributes, set process attributes
◦ wait for time
◦ wait event, signal event
◦ allocate and free memory
Protection
◦ Get permission, set permission
◦ Allow user, deny user
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 10
System Calls
File management
◦ create file, delete file
◦ open, close
◦ read, write, reposition
◦ get file attributes, set file attributes
Device management
◦ request device, release device
◦ read, write, reposition
◦ get device attributes, set device attributes
◦ logically attach or detach devices
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 11
System Calls
Information maintenance
◦ get time or date, set time or date
◦ get system data, set system data
◦ get process, file, or device attributes
◦ set process, file, or device attributes
Communications
◦ create, delete communication connection
◦ send, receive messages
◦ transfer status information
◦ attach or detach remote devices
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 12
References
1. Operating System Concept ninth Edition by Abraham Silberschatz and Galvin
2. https://electricalfundablog.com/operating-system-os-functions-types-resource-management/
3. http://ecomputernotes.com/fundamental/disk-operating-system/types-of-operating-system
9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 13

System component and system calls unit 1 by ram k paliwal

  • 1.
    Unit -1 SYSTEM COMPONENTSAND SYSTEM CALLS IN OPERATING SYSTEM BY RAM K PALIWAL 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 1
  • 2.
    System Components The architectureof Windows Operating System is a layered system of modules. ◦ The main layers are the HAL, the kernel, and the executive, all of which run in kernel mode, and a collection of subsystems and services that run in user mode. ◦ The user-mode subsystems fall into two categories: ◦ the environmental subsystems, which emulate different operating systems. ◦ protection subsystems, which provide security functions. ◦ One of the chief advantages of this type of architecture is that interactions between modules are kept simple. The remainder of this section describes these layers and subsystems. 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 2
  • 3.
    9/3/2019 OPERATING SYSTEMSERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 3
  • 4.
    System Components Main Componentsare ◦ Hardware Abstraction Layer ◦ Kernel ◦ Executive Section Hardware abstraction Layer The HAL is the layer of software that hides hardware chipset differences from upper levels of the operating system. The HAL exports a virtual hardware interface that is used by the ◦ kernel dispatcher ◦ The executive, ◦ the device drivers. 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 4
  • 5.
    System Components Kernel The kernellayer of Windows has four main responsibilities: ◦ thread scheduling ◦ low-level processor synchronization ◦ interrupt and exception handling ◦ switching between user mode and kernel mode Executive The Windows executive provides a set of services that all environmental subsystems use. The services are grouped as follows: ◦ object manager 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 5
  • 6.
    System Components ◦ virtualmemory manager ◦ process manager ◦ advanced local procedure call facility ◦ I/O manager ◦ cache manager ◦ security reference monitor ◦ plug-and-play and power managers ◦ Registry ◦ booting. 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 6
  • 7.
    System Calls System callsprovide an interface to the services made available by an operating system. These calls are generally available as routines written in C and C++, although certain low-level tasks (for example, tasks where hardware must be accessed directly) may have to be written using assembly- language instructions. Before we discuss how an operating system makes system calls available, let’s first use an example to illustrate how system calls are used: writing a simple program to read data from one file and copy them to another file. 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 7
  • 8.
    9/3/2019 OPERATING SYSTEMSERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 8
  • 9.
    System Calls Types ofSystem Calls 1. Process control 2. File manipulation 3. Device manipulation 4. Information maintenance 5. Communications 6. Protection. 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 9
  • 10.
    System Calls Process control ◦end, abort ◦ load, execute ◦ create process, terminate process ◦ get process attributes, set process attributes ◦ wait for time ◦ wait event, signal event ◦ allocate and free memory Protection ◦ Get permission, set permission ◦ Allow user, deny user 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 10
  • 11.
    System Calls File management ◦create file, delete file ◦ open, close ◦ read, write, reposition ◦ get file attributes, set file attributes Device management ◦ request device, release device ◦ read, write, reposition ◦ get device attributes, set device attributes ◦ logically attach or detach devices 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 11
  • 12.
    System Calls Information maintenance ◦get time or date, set time or date ◦ get system data, set system data ◦ get process, file, or device attributes ◦ set process, file, or device attributes Communications ◦ create, delete communication connection ◦ send, receive messages ◦ transfer status information ◦ attach or detach remote devices 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 12
  • 13.
    References 1. Operating SystemConcept ninth Edition by Abraham Silberschatz and Galvin 2. https://electricalfundablog.com/operating-system-os-functions-types-resource-management/ 3. http://ecomputernotes.com/fundamental/disk-operating-system/types-of-operating-system 9/3/2019 OPERATING SYSTEM SERVICES AND SYSTEM COMPONENT - UNIT 1- BY RAM K PALIWAL 13

Editor's Notes

  • #6 The kernel layer of Windows has four main responsibilities: thread scheduling, low-level processor synchronization, interrupt and exception handling, and switching between user mode and kernel mode. The kernel is implemented in the C language, using assembly language only where absolutely necessary to interface with the lowest level of the hardware architecture. The kernel is organized according to object-oriented design principles. An object type in Windows is a system-defined data type that has a set of attributes (data values) and a set of methods (for example, functions or operations). An object is an instance of an object type. The kernel performs its job by using a set of kernel objects whose attributes store the kernel data and whose methods perform the kernel activities.