This document provides an overview of operating systems concepts. It discusses the definition and goals of operating systems, how they manage computer hardware and allocate resources. It describes the basic components of a computer system including the CPU, memory, I/O devices, and how the operating system acts as an intermediary. It also summarizes key operating system functions like process management, memory management, storage management, and protection/security.
This document contains lecture notes on operating systems from Shri Vishnu Engineering College for Women. It discusses the overview of operating systems including definitions, computer system structure with hardware, operating system, application programs and users. It describes operating system functions like process management, memory management, storage management, and system protection. It also discusses concepts like interrupts, I/O structure, direct memory access, storage hierarchy, caching and operating system structure for multiprogramming and timesharing.
This document contains lecture notes on operating systems from Shri Vishnu Engineering College for Women. It covers an overview of operating systems including definitions, computer system structure with hardware, operating system, application programs and users. It also discusses operating system functions such as process management, memory management, storage management, I/O subsystem, protection and security. Distributed systems including client-server, peer-to-peer and web-based computing are introduced. Finally, it discusses operating system services and interfaces including command line, graphical user interface and system calls.
operating systems concepts, ch-01, third level, Faculity of Applied Scinces, Seiyun University. انظمة التشغيل لطلاب المستوى الثالث بكلية العلوم التطبيقية المحاضرة 01
This chapter introduces operating systems by describing their main components and functions. It discusses how operating systems act as an intermediary between the user and computer hardware to execute programs and manage system resources like the CPU, memory, storage and I/O devices. It also provides an overview of computer system organization, operating system structure, common operations and how operating systems handle processes, memory and storage management.
Operating systems. replace ch1 with numbers for next chapterssphs
This chapter introduces operating systems and their core components and functions. It discusses how operating systems act as an intermediary between the user and computer hardware to execute programs and manage system resources like the CPU, memory, storage and I/O devices. It also describes the basic structure of a computer system, including hardware components, the operating system, application programs and users. Finally, it provides overviews of key operating system operations like process management, memory management and storage management.
This chapter introduces operating systems and their major components. It discusses how operating systems act as an intermediary between the user and computer hardware to execute programs and manage system resources like the CPU, memory, storage and I/O devices. It also covers the basic structure of a computer system including hardware components, the operating system, application programs, and users. Key operating system functions like process management, memory management and storage management are introduced.
This chapter provides an introduction and overview of operating systems. It defines an operating system as a program that manages computer hardware and software resources and provides common services for computer programs. It describes the components of a computer system including hardware, operating system, application programs, and users. It then discusses the structure and functions of operating systems, including process management, memory management, storage management, protection and security, and distributed systems. It provides examples of different computing environments like traditional, client-server, peer-to-peer, and web-based computing.
This document contains lecture notes on operating systems from Shri Vishnu Engineering College for Women. It discusses the overview of operating systems including definitions, computer system structure with hardware, operating system, application programs and users. It describes operating system functions like process management, memory management, storage management, and system protection. It also discusses concepts like interrupts, I/O structure, direct memory access, storage hierarchy, caching and operating system structure for multiprogramming and timesharing.
This document contains lecture notes on operating systems from Shri Vishnu Engineering College for Women. It covers an overview of operating systems including definitions, computer system structure with hardware, operating system, application programs and users. It also discusses operating system functions such as process management, memory management, storage management, I/O subsystem, protection and security. Distributed systems including client-server, peer-to-peer and web-based computing are introduced. Finally, it discusses operating system services and interfaces including command line, graphical user interface and system calls.
operating systems concepts, ch-01, third level, Faculity of Applied Scinces, Seiyun University. انظمة التشغيل لطلاب المستوى الثالث بكلية العلوم التطبيقية المحاضرة 01
This chapter introduces operating systems by describing their main components and functions. It discusses how operating systems act as an intermediary between the user and computer hardware to execute programs and manage system resources like the CPU, memory, storage and I/O devices. It also provides an overview of computer system organization, operating system structure, common operations and how operating systems handle processes, memory and storage management.
Operating systems. replace ch1 with numbers for next chapterssphs
This chapter introduces operating systems and their core components and functions. It discusses how operating systems act as an intermediary between the user and computer hardware to execute programs and manage system resources like the CPU, memory, storage and I/O devices. It also describes the basic structure of a computer system, including hardware components, the operating system, application programs and users. Finally, it provides overviews of key operating system operations like process management, memory management and storage management.
This chapter introduces operating systems and their major components. It discusses how operating systems act as an intermediary between the user and computer hardware to execute programs and manage system resources like the CPU, memory, storage and I/O devices. It also covers the basic structure of a computer system including hardware components, the operating system, application programs, and users. Key operating system functions like process management, memory management and storage management are introduced.
This chapter provides an introduction and overview of operating systems. It defines an operating system as a program that manages computer hardware and software resources and provides common services for computer programs. It describes the components of a computer system including hardware, operating system, application programs, and users. It then discusses the structure and functions of operating systems, including process management, memory management, storage management, protection and security, and distributed systems. It provides examples of different computing environments like traditional, client-server, peer-to-peer, and web-based computing.
operating system over view.ppt operating sysyemsJyoReddy9
The document discusses the key concepts of operating systems including their goals, structure, functions and management of processes, memory, storage and security. Specifically, it describes how an operating system acts as an intermediary between the user and hardware to execute programs efficiently while making resource allocation decisions. It also outlines the hierarchy of computer storage and caching strategies used to optimize performance.
This document provides an overview of operating system concepts, including:
- The role of an operating system is to act as an intermediary between the user and computer hardware to execute programs and efficiently manage system resources.
- A computer system consists of hardware, operating system, application programs, and users. The operating system controls and coordinates the hardware resources among applications and users.
- Operating systems perform process management, memory management, storage management, and security functions to allocate resources and control concurrent execution of programs.
UNIT I OPERATING SYSTEM OVERVIEW
Computer System Overview-Basic Elements, Instruction Execution, Interrupts, Memory Hierarchy, Cache Memory, Direct Memory Access, Multiprocessor and Multicore Organization. Operating system overview-objectives and functions, Evolution of Operating System.- Computer System Organization Operating System Structure and Operations- System Calls, System Programs, OS Generation and System Boot.
LM1 - Computer System Overview, system callsmanideepakc
The document discusses operating system concepts including:
1. It provides an overview of computer system elements like the CPU, memory, I/O devices and how the operating system acts as an intermediary between the user and hardware.
2. It describes instruction execution involving fetching, decoding and executing instructions in memory.
3. It explains interrupts as signals that alert the processor to high priority processes, and how the operating system handles interrupts through interrupt service routines.
The document discusses operating systems and computer system architecture. It defines an operating system as a program that manages a computer's hardware resources and provides common services for application software. It describes the components of a computer system as the CPU, memory, I/O devices, and how the operating system controls and coordinates their use. It also discusses different types of operating systems designed for single-user systems, multi-user systems, servers, handheld devices, and embedded systems.
This document provides an overview of operating system concepts across 3 chapters. It describes the core functions of an operating system including process management, memory management, storage management, protection and security. It also discusses computer system organization including hardware components, multiprocessing, and storage hierarchies. Key operating system structures are explained such as interrupt handling, I/O processing, and virtual memory. Different computing environments like client-server, peer-to-peer, and web-based systems are also introduced.
This document provides lecture notes on operating systems. It begins with an overview of operating systems, their goals and functions. It describes the components of a computer system including hardware, operating system, application programs and users. It then covers common operating system concepts such as processes, memory management, storage management, I/O subsystem and protection/security. The document also discusses distributed systems and operating system services provided to users and for efficient system operation.
This document provides an overview of the Operating Systems course code 17CS64 at Canara Engineering College. The course is taught in the 6th semester and has 10 hours of content. Module 1 covers introductions to operating systems, including what they do, computer system organization and architecture, OS structure and operations, processes, memory management, storage management, security, distributed systems, and computing environments. It also discusses OS structures, services, interfaces, system calls, programs, design, and boot processes. Process management concepts like processes, scheduling, and inter-process communication are also introduced. Web resources for further reading on operating systems are provided.
The document provides an introduction to operating systems. It defines an operating system as a program that acts as an intermediary between the user and computer hardware. The goals of an operating system are to execute user programs, make the computer system convenient to use, and efficiently use computer hardware resources. A computer system consists of hardware, an operating system, application programs, and users. The operating system controls and coordinates the use of hardware resources among applications and users.
Lecture_01 Operating System Course IntroductionArnoyKhan
The document provides an introduction to operating systems, discussing what they are, what they do, and their common features and components. It defines operating systems as programs that act as intermediaries between computer hardware and users, managing resources and executing programs. It describes the structure of computer systems and how operating systems control hardware, allocate resources, manage memory, process I/O requests, and handle security and protection.
This document provides an overview of operating system concepts, including the four main components of a computer system (hardware, operating system, application programs, and users). It describes operating system functions like process management, memory management, storage management, protection and security. It also covers computer system organization topics such as interrupts, I/O structure, storage hierarchy and caching. Finally, it discusses operating system structures, operations, and different computing environments including client-server, peer-to-peer and web-based systems.
The document discusses operating system concepts including:
1. An operating system acts as an intermediary between the user and computer hardware, executing programs and making the computer convenient to use.
2. A computer system consists of hardware, operating system, application programs, and users, with the operating system controlling resource allocation.
3. Key operating system functions include process management, memory management, storage management, and handling interrupts to enable concurrent execution.
This document provides an overview of operating system concepts and components. It describes the basic structure of a computer system including hardware, operating system, application programs, and users. It then discusses operating system definitions and goals, including acting as an intermediary between the user and hardware and making efficient use of system resources. Finally, it covers operating system operations like process management, memory management, and protection/security.
This document provides an introduction to operating systems, including their basic components and functions. It describes how operating systems act as an intermediary between the user and computer hardware, managing resources and executing programs. It also outlines the typical structure of a computer system, with hardware, operating system, application programs, and users as the four main components. Finally, it gives overviews of computer organization, storage management, multiprocessing, and the structure of operating systems.
The document discusses operating systems and their functions. It defines an operating system as a program that manages computer hardware resources and provides common services for application software. It describes how operating systems control and coordinate the use of hardware among applications and users. Finally, it discusses some key functions of operating systems, including allocating resources, controlling program execution, and managing input/output devices through device drivers.
The document provides an overview of operating system concepts, describing what operating systems do and how they are viewed from both the user and system perspectives. It defines key components of a computer system including hardware, operating systems, application programs, and users. The operating system acts as an intermediary that controls hardware resources and coordinates their use among applications and users. It also describes the basic organization and operation of computer systems, how storage is structured in a storage hierarchy with caching, and how input/output devices are controlled.
Real Time Operating System ,Structures of Operating System(Monolithic, Micro...VIJETHAK2
introduction to real time operating systems Structures of Operating System(Monolithic, Microkernel, Layered, Exo-kernel and Hybrid kernel structures) Operating system objectives and functions,Virtual ComputersInteraction of OS and Hardware architecture
This document provides an overview of operating system concepts and components. It describes the basic organization of computer systems into hardware, operating system, application programs, and users. It then discusses operating system functions such as process management, memory management, storage management, protection and security. It also covers computing environments and open-source operating systems. The overall purpose is to provide a high-level tour of major operating system topics.
The document discusses operating systems and their key functions. An operating system acts as an intermediary between users and computer hardware. It hides hardware details and provides a convenient interface. Operating systems execute programs, allocate resources efficiently between users and applications, and make the computer system easier to use.
INTRODUCTIONTO OPERATING SYSTEM
What is an Operating System?
Mainframe Systems
Desktop Systems
Multiprocessor Systems
Distributed Systems
Clustered System
Real -Time Systems
Handheld Systems
Computing Environments
An improved modulation technique suitable for a three level flying capacitor ...IJECEIAES
This research paper introduces an innovative modulation technique for controlling a 3-level flying capacitor multilevel inverter (FCMLI), aiming to streamline the modulation process in contrast to conventional methods. The proposed
simplified modulation technique paves the way for more straightforward and
efficient control of multilevel inverters, enabling their widespread adoption and
integration into modern power electronic systems. Through the amalgamation of
sinusoidal pulse width modulation (SPWM) with a high-frequency square wave
pulse, this controlling technique attains energy equilibrium across the coupling
capacitor. The modulation scheme incorporates a simplified switching pattern
and a decreased count of voltage references, thereby simplifying the control
algorithm.
operating system over view.ppt operating sysyemsJyoReddy9
The document discusses the key concepts of operating systems including their goals, structure, functions and management of processes, memory, storage and security. Specifically, it describes how an operating system acts as an intermediary between the user and hardware to execute programs efficiently while making resource allocation decisions. It also outlines the hierarchy of computer storage and caching strategies used to optimize performance.
This document provides an overview of operating system concepts, including:
- The role of an operating system is to act as an intermediary between the user and computer hardware to execute programs and efficiently manage system resources.
- A computer system consists of hardware, operating system, application programs, and users. The operating system controls and coordinates the hardware resources among applications and users.
- Operating systems perform process management, memory management, storage management, and security functions to allocate resources and control concurrent execution of programs.
UNIT I OPERATING SYSTEM OVERVIEW
Computer System Overview-Basic Elements, Instruction Execution, Interrupts, Memory Hierarchy, Cache Memory, Direct Memory Access, Multiprocessor and Multicore Organization. Operating system overview-objectives and functions, Evolution of Operating System.- Computer System Organization Operating System Structure and Operations- System Calls, System Programs, OS Generation and System Boot.
LM1 - Computer System Overview, system callsmanideepakc
The document discusses operating system concepts including:
1. It provides an overview of computer system elements like the CPU, memory, I/O devices and how the operating system acts as an intermediary between the user and hardware.
2. It describes instruction execution involving fetching, decoding and executing instructions in memory.
3. It explains interrupts as signals that alert the processor to high priority processes, and how the operating system handles interrupts through interrupt service routines.
The document discusses operating systems and computer system architecture. It defines an operating system as a program that manages a computer's hardware resources and provides common services for application software. It describes the components of a computer system as the CPU, memory, I/O devices, and how the operating system controls and coordinates their use. It also discusses different types of operating systems designed for single-user systems, multi-user systems, servers, handheld devices, and embedded systems.
This document provides an overview of operating system concepts across 3 chapters. It describes the core functions of an operating system including process management, memory management, storage management, protection and security. It also discusses computer system organization including hardware components, multiprocessing, and storage hierarchies. Key operating system structures are explained such as interrupt handling, I/O processing, and virtual memory. Different computing environments like client-server, peer-to-peer, and web-based systems are also introduced.
This document provides lecture notes on operating systems. It begins with an overview of operating systems, their goals and functions. It describes the components of a computer system including hardware, operating system, application programs and users. It then covers common operating system concepts such as processes, memory management, storage management, I/O subsystem and protection/security. The document also discusses distributed systems and operating system services provided to users and for efficient system operation.
This document provides an overview of the Operating Systems course code 17CS64 at Canara Engineering College. The course is taught in the 6th semester and has 10 hours of content. Module 1 covers introductions to operating systems, including what they do, computer system organization and architecture, OS structure and operations, processes, memory management, storage management, security, distributed systems, and computing environments. It also discusses OS structures, services, interfaces, system calls, programs, design, and boot processes. Process management concepts like processes, scheduling, and inter-process communication are also introduced. Web resources for further reading on operating systems are provided.
The document provides an introduction to operating systems. It defines an operating system as a program that acts as an intermediary between the user and computer hardware. The goals of an operating system are to execute user programs, make the computer system convenient to use, and efficiently use computer hardware resources. A computer system consists of hardware, an operating system, application programs, and users. The operating system controls and coordinates the use of hardware resources among applications and users.
Lecture_01 Operating System Course IntroductionArnoyKhan
The document provides an introduction to operating systems, discussing what they are, what they do, and their common features and components. It defines operating systems as programs that act as intermediaries between computer hardware and users, managing resources and executing programs. It describes the structure of computer systems and how operating systems control hardware, allocate resources, manage memory, process I/O requests, and handle security and protection.
This document provides an overview of operating system concepts, including the four main components of a computer system (hardware, operating system, application programs, and users). It describes operating system functions like process management, memory management, storage management, protection and security. It also covers computer system organization topics such as interrupts, I/O structure, storage hierarchy and caching. Finally, it discusses operating system structures, operations, and different computing environments including client-server, peer-to-peer and web-based systems.
The document discusses operating system concepts including:
1. An operating system acts as an intermediary between the user and computer hardware, executing programs and making the computer convenient to use.
2. A computer system consists of hardware, operating system, application programs, and users, with the operating system controlling resource allocation.
3. Key operating system functions include process management, memory management, storage management, and handling interrupts to enable concurrent execution.
This document provides an overview of operating system concepts and components. It describes the basic structure of a computer system including hardware, operating system, application programs, and users. It then discusses operating system definitions and goals, including acting as an intermediary between the user and hardware and making efficient use of system resources. Finally, it covers operating system operations like process management, memory management, and protection/security.
This document provides an introduction to operating systems, including their basic components and functions. It describes how operating systems act as an intermediary between the user and computer hardware, managing resources and executing programs. It also outlines the typical structure of a computer system, with hardware, operating system, application programs, and users as the four main components. Finally, it gives overviews of computer organization, storage management, multiprocessing, and the structure of operating systems.
The document discusses operating systems and their functions. It defines an operating system as a program that manages computer hardware resources and provides common services for application software. It describes how operating systems control and coordinate the use of hardware among applications and users. Finally, it discusses some key functions of operating systems, including allocating resources, controlling program execution, and managing input/output devices through device drivers.
The document provides an overview of operating system concepts, describing what operating systems do and how they are viewed from both the user and system perspectives. It defines key components of a computer system including hardware, operating systems, application programs, and users. The operating system acts as an intermediary that controls hardware resources and coordinates their use among applications and users. It also describes the basic organization and operation of computer systems, how storage is structured in a storage hierarchy with caching, and how input/output devices are controlled.
Real Time Operating System ,Structures of Operating System(Monolithic, Micro...VIJETHAK2
introduction to real time operating systems Structures of Operating System(Monolithic, Microkernel, Layered, Exo-kernel and Hybrid kernel structures) Operating system objectives and functions,Virtual ComputersInteraction of OS and Hardware architecture
This document provides an overview of operating system concepts and components. It describes the basic organization of computer systems into hardware, operating system, application programs, and users. It then discusses operating system functions such as process management, memory management, storage management, protection and security. It also covers computing environments and open-source operating systems. The overall purpose is to provide a high-level tour of major operating system topics.
The document discusses operating systems and their key functions. An operating system acts as an intermediary between users and computer hardware. It hides hardware details and provides a convenient interface. Operating systems execute programs, allocate resources efficiently between users and applications, and make the computer system easier to use.
INTRODUCTIONTO OPERATING SYSTEM
What is an Operating System?
Mainframe Systems
Desktop Systems
Multiprocessor Systems
Distributed Systems
Clustered System
Real -Time Systems
Handheld Systems
Computing Environments
Similar to OS UNIT-I Introdution to Operating systems.ppt (20)
An improved modulation technique suitable for a three level flying capacitor ...IJECEIAES
This research paper introduces an innovative modulation technique for controlling a 3-level flying capacitor multilevel inverter (FCMLI), aiming to streamline the modulation process in contrast to conventional methods. The proposed
simplified modulation technique paves the way for more straightforward and
efficient control of multilevel inverters, enabling their widespread adoption and
integration into modern power electronic systems. Through the amalgamation of
sinusoidal pulse width modulation (SPWM) with a high-frequency square wave
pulse, this controlling technique attains energy equilibrium across the coupling
capacitor. The modulation scheme incorporates a simplified switching pattern
and a decreased count of voltage references, thereby simplifying the control
algorithm.
Comparative analysis between traditional aquaponics and reconstructed aquapon...bijceesjournal
The aquaponic system of planting is a method that does not require soil usage. It is a method that only needs water, fish, lava rocks (a substitute for soil), and plants. Aquaponic systems are sustainable and environmentally friendly. Its use not only helps to plant in small spaces but also helps reduce artificial chemical use and minimizes excess water use, as aquaponics consumes 90% less water than soil-based gardening. The study applied a descriptive and experimental design to assess and compare conventional and reconstructed aquaponic methods for reproducing tomatoes. The researchers created an observation checklist to determine the significant factors of the study. The study aims to determine the significant difference between traditional aquaponics and reconstructed aquaponics systems propagating tomatoes in terms of height, weight, girth, and number of fruits. The reconstructed aquaponics system’s higher growth yield results in a much more nourished crop than the traditional aquaponics system. It is superior in its number of fruits, height, weight, and girth measurement. Moreover, the reconstructed aquaponics system is proven to eliminate all the hindrances present in the traditional aquaponics system, which are overcrowding of fish, algae growth, pest problems, contaminated water, and dead fish.
Rainfall intensity duration frequency curve statistical analysis and modeling...bijceesjournal
Using data from 41 years in Patna’ India’ the study’s goal is to analyze the trends of how often it rains on a weekly, seasonal, and annual basis (1981−2020). First, utilizing the intensity-duration-frequency (IDF) curve and the relationship by statistically analyzing rainfall’ the historical rainfall data set for Patna’ India’ during a 41 year period (1981−2020), was evaluated for its quality. Changes in the hydrologic cycle as a result of increased greenhouse gas emissions are expected to induce variations in the intensity, length, and frequency of precipitation events. One strategy to lessen vulnerability is to quantify probable changes and adapt to them. Techniques such as log-normal, normal, and Gumbel are used (EV-I). Distributions were created with durations of 1, 2, 3, 6, and 24 h and return times of 2, 5, 10, 25, and 100 years. There were also mathematical correlations discovered between rainfall and recurrence interval.
Findings: Based on findings, the Gumbel approach produced the highest intensity values, whereas the other approaches produced values that were close to each other. The data indicates that 461.9 mm of rain fell during the monsoon season’s 301st week. However, it was found that the 29th week had the greatest average rainfall, 92.6 mm. With 952.6 mm on average, the monsoon season saw the highest rainfall. Calculations revealed that the yearly rainfall averaged 1171.1 mm. Using Weibull’s method, the study was subsequently expanded to examine rainfall distribution at different recurrence intervals of 2, 5, 10, and 25 years. Rainfall and recurrence interval mathematical correlations were also developed. Further regression analysis revealed that short wave irrigation, wind direction, wind speed, pressure, relative humidity, and temperature all had a substantial influence on rainfall.
Originality and value: The results of the rainfall IDF curves can provide useful information to policymakers in making appropriate decisions in managing and minimizing floods in the study area.
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Sinan KOZAK
Sinan from the Delivery Hero mobile infrastructure engineering team shares a deep dive into performance acceleration with Gradle build cache optimizations. Sinan shares their journey into solving complex build-cache problems that affect Gradle builds. By understanding the challenges and solutions found in our journey, we aim to demonstrate the possibilities for faster builds. The case study reveals how overlapping outputs and cache misconfigurations led to significant increases in build times, especially as the project scaled up with numerous modules using Paparazzi tests. The journey from diagnosing to defeating cache issues offers invaluable lessons on maintaining cache integrity without sacrificing functionality.
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...shadow0702a
This document serves as a comprehensive step-by-step guide on how to effectively use PyCharm for remote debugging of the Windows Subsystem for Linux (WSL) on a local Windows machine. It meticulously outlines several critical steps in the process, starting with the crucial task of enabling permissions, followed by the installation and configuration of WSL.
The guide then proceeds to explain how to set up the SSH service within the WSL environment, an integral part of the process. Alongside this, it also provides detailed instructions on how to modify the inbound rules of the Windows firewall to facilitate the process, ensuring that there are no connectivity issues that could potentially hinder the debugging process.
The document further emphasizes on the importance of checking the connection between the Windows and WSL environments, providing instructions on how to ensure that the connection is optimal and ready for remote debugging.
It also offers an in-depth guide on how to configure the WSL interpreter and files within the PyCharm environment. This is essential for ensuring that the debugging process is set up correctly and that the program can be run effectively within the WSL terminal.
Additionally, the document provides guidance on how to set up breakpoints for debugging, a fundamental aspect of the debugging process which allows the developer to stop the execution of their code at certain points and inspect their program at those stages.
Finally, the document concludes by providing a link to a reference blog. This blog offers additional information and guidance on configuring the remote Python interpreter in PyCharm, providing the reader with a well-rounded understanding of the process.
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
OS UNIT-I Introdution to Operating systems.ppt
1. Operating Systems
(R1631055)
by
Mrs. T.Satya Kumari
Assistant Professor
Department of CSE
Aditya College of Engineering
Approved by AICTE, Accredited by NAAC
and Permanently affiliated to JNTUK, Kakinada
1
Department of CSE, Aditya College of Engineering, Surampalem
2. UNIT-I
Introduction to Operating System Concept
Types of operating system
Operating system concepts
Operating system services
Introduction to system call
System call types
Department of CSE, Aditya College of Engineering, Surampalem 2
3. What is an Operating System?
An operating system is a program that manages the
computer hardware.
A program that acts as an intermediary between a
user of a computer and the computer hardware
Operating system goals:
Execute user programs and make solving user problems
easier
Make the computer system convenient to use
Use the computer hardware in an efficient manner
Department of CSE, Aditya College of Engineering, Surampalem 3
4. Operating System Definition
OS is a resource allocator
Manages all resources
Decides between conflicting requests for efficient and fair
resource use
OS is a control program
Controls execution of programs to prevent errors and improper
use of the computer
No universally accepted definition
“The one program running at all times on the computer” is the
kernel. Everything else is either a system program (ships with the
operating system) or an application program
Department of CSE, Aditya College of Engineering, Surampalem
4
5. Computer System Structure
Computer system can be divided into four components
Hardware – provides basic computing resources
CPU, memory, I/O devices
Operating system
Controls and coordinates use of hardware among various
applications and users
Application programs – define the ways in which the system
resources are used to solve the computing problems of the
users
Word processors, compilers, web browsers, database systems,
video games
Users
People, machines, other computers
Department of CSE, Aditya College of Engineering, Surampalem 5
6. Four Components of a Computer System
Department of CSE, Aditya College of Engineering, Surampalem 6
7. Computer System Organization
Computer-system operation
I/O Structure
Storage structure
Department of CSE, Aditya College of Engineering, Surampalem 7
8. Computer System Organization
Computer-system operation
One or more CPUs, device controllers connect through common bus providing access to
shared memory
Concurrent execution of CPUs and device controllers competing for memory cycles
Department of CSE, Aditya College of Engineering, Surampalem 8
9. Computer Startup
bootstrap program is loaded at power-up or reboot
Typically stored in ROM or EEPROM, generally known as
firmware
Initializes all aspects of system
Loads operating system kernel and starts execution
The operating system then starts executing the first process,
such as "init," and waits for some event to occur.
Department of CSE, Aditya College of Engineering, Surampalem 9
10. Computer-system operation (cont.)
occurrence of an event is signaled by an interrupt
from either the hardware or the software.
Hardware may trigger an interrupt at any time by
sending a signal to the CPU, usually by way of the
system bus.
Software may trigger an interrupt by executing a
special operation called a system call (also called a
monitor call).
Department of CSE, Aditya College of Engineering, Surampalem 10
11. Common Functions of Interrupts
When the CPU is interrupted, it stops what it is doing
and immediately transfers execution to a fixed
location.
The fixed location usually contains the starting
address where the service routine for the interrupt is
located.
The interrupt service routine executes;
on completion, the CPU resumes the interrupted
computation.
Department of CSE, Aditya College of Engineering, Surampalem 11
12. Common Functions of Interrupts
Interrupt transfers control to the interrupt service routine
generally, through the interrupt vector, which contains the
addresses of all the service routines.
Interrupt architecture must save the address of the interrupted
instruction.
Incoming interrupts are disabled while another interrupt is being
processed to prevent a lost interrupt.
A trap is a software-generated interrupt caused either by an error
or a user request.
An operating system is interrupt driven.
Department of CSE, Aditya College of Engineering, Surampalem 12
13. Interrupt Handling
The os preserves the state of the CPU by storing
registers and the program counter.
After the interrupt is serviced, the saved return
address is loaded into the program counter
And the interrupted computation resumes as
though the interrupt had not occurred.
Department of CSE, Aditya College of Engineering, Surampalem 13
16. I/O Structure
A general-purpose computer system consists of CPUs and
multiple device controllers that are connected through a
common bus.
Each device controller is in charge of a specific type of
device.
Depending on the controller, there may be more than
one attached device.
For instance, seven or more devices can be attached
to the small computer-systems interface (SCSI) controller.
Department of CSE, Aditya College of Engineering, Surampalem 16
17. I/O Structure
Device controller maintains some local buffer storage
and a set of special-purpose registers.
Device controller is responsible for moving the data
between the peripheral devices that it controls and its
local buffer storage.
Typically, operating systems have a device driver for
each device controller.
Device driver understands the device controller and
presents a uniform interface to the device to the rest of
the operating system.
Department of CSE, Aditya College of Engineering, Surampalem 17
18. I/O Structure
To start an I/O operation, device driver loads appropriate registers
within device controller.
Device controller examines contents of the registers to determine
what action to take (such as "read a character from the keyboard").
The controller starts transfer of data from device to its local buffer.
Once transfer of data is complete, device controller informs the
device driver via an interrupt.
Then device driver returns control to the operating system, possibly
returning the data or a pointer to the data if the operation was a
read.
For other operations, the device driver returns status information.
Department of CSE, Aditya College of Engineering, Surampalem 18
20. Direct Memory Access Structure
Used for high-speed I/O devices able to transmit information at
close to memory speeds
Device controller transfers blocks of data from buffer storage
directly to main memory without CPU intervention
Only one interrupt is generated per block, rather than the one
interrupt per byte
Department of CSE, Aditya College of Engineering, Surampalem 20
22. Storage Structure
Main memory – only large storage media that the CPU can access directly
Secondary storage – extension of main memory that provides large
nonvolatile storage capacity
Magnetic disks – rigid metal or glass platters covered with magnetic
recording material
Disk surface is logically divided into tracks, which are subdivided into sectors
The disk controller determines the logical interaction between the device and
the computer
Department of CSE, Aditya College of Engineering, Surampalem 22
23. Storage Hierarchy
Storage systems organized in hierarchy
Speed
Cost
Volatility
Caching – copying information into faster storage system; main memory
can be viewed as a last cache for secondary storage
Department of CSE, Aditya College of Engineering, Surampalem 23
24. Caching
Important principle, performed at many levels in a computer
(in hardware, operating system, software)
Information in use copied from slower to faster storage
temporarily
Faster storage (cache) checked first to determine if
information is there
If it is, information used directly from the cache (fast)
If not, data copied to cache and used there
Cache smaller than storage being cached
Cache management important design problem
Cache size and replacement policy
Department of CSE, Aditya College of Engineering, Surampalem 24
25. Performance of Various Levels of Storage
Movement between levels of storage hierarchy can be explicit or
implicit
Department of CSE, Aditya College of Engineering, Surampalem 25
26. Operating System Structure
Multi Programmed Systems
Time Sharing Systems
Multiprogramming needed for efficiency
Single user cannot keep CPU and I/O devices busy at all
times
Multiprogramming organizes jobs (code and data) so CPU
always has one to execute
A subset of total jobs in system is kept in memory
One job selected and run via job scheduling
When it has to wait (for I/O for example), OS switches to
another job
Department of CSE, Aditya College of Engineering, Surampalem 26
27. Memory Layout for Multiprogrammed System
Department of CSE, Aditya College of Engineering, Surampalem 27
28. Operating System Structure
Timesharing (multitasking) is logical extension in which CPU
switches jobs so frequently that users can interact with each
job while it is running, creating interactive computing
Response time should be < 1 second
Each user has at least one program executing in memory
process
If several jobs ready to run at the same time CPU
scheduling
If processes don’t fit in memory, swapping moves them in
and out to run
Virtual memory allows execution of processes not
completely in memory
Department of CSE, Aditya College of Engineering, Surampalem 28
29. Operating System Structure
Timesharing (multitasking)
Department of CSE, Aditya College of Engineering, Surampalem 29
30. Operating-System Operations
Interrupt driven by hardware
Software error or request creates exception or trap
Division by zero, request for operating system service
Other process problems include infinite loop, processes
modifying each other or the operating system
Department of CSE, Aditya College of Engineering, Surampalem 30
31. Operating-System Operations
Dual-mode operation allows OS to protect itself and other system
components
User mode and kernel mode
Mode bit provided by hardware
Provides ability to distinguish when system is running user
code or kernel code
Some instructions designated as privileged, only executable
in kernel mode
System call changes mode to kernel, return from call resets it
to user
Department of CSE, Aditya College of Engineering, Surampalem 31
32. Transition from User to Kernel Mode
Timer to prevent infinite loop / process hogging resources
Set interrupt after specific period
Operating system decrements counter
When counter zero generate an interrupt
Set up before scheduling process to regain control or terminate program that
exceeds allotted time
Department of CSE, Aditya College of Engineering, Surampalem 32
33. Functions of operating system
Process Management
Memory Management
Storage Management
Protection and Security
Department of CSE, Aditya College of Engineering, Surampalem 33
34. Process Management
A process is a program in execution. It is a unit of work within the
system. Program is a passive entity, process is an active entity.
Process needs resources to accomplish its task
CPU, memory, I/O, files
Initialization data
Process termination requires reclaim of any reusable resources
Department of CSE, Aditya College of Engineering, Surampalem 34
35. Process Management
Single-threaded process has one program counter specifying
location of next instruction to execute
Process executes instructions sequentially, one at a time,
until completion
Multi-threaded process has one program counter per thread
Typically system has many processes, some user, some operating
system running concurrently on one or more CPUs
Concurrency by multiplexing the CPUs among the processes /
threads
Department of CSE, Aditya College of Engineering, Surampalem 35
36. Process Management Activities
The operating system is responsible for the following
activities in connection with process management:
Creating and deleting both user and system processes
Suspending and resuming processes
Providing mechanisms for process synchronization
Providing mechanisms for process communication
Providing mechanisms for deadlock handling
Department of CSE, Aditya College of Engineering, Surampalem 36
37. Memory Management
All data in memory before and after processing
All instructions in memory in order to execute
Memory management determines what is in memory
Optimizing CPU utilization and computer response to users
Memory management activities
Keeping track of which parts of memory are currently being
used and by whom
Deciding which processes (or parts thereof) and data to
move into and out of memory
Allocating and deallocating memory space as needed
Department of CSE, Aditya College of Engineering, Surampalem 37
38. Storage Management
OS provides uniform, logical view of information storage
Abstracts physical properties to logical storage unit - file
Each medium is controlled by device (i.e., disk drive, tape drive)
Varying properties include access speed, capacity, data-
transfer rate, access method (sequential or random)
File-System management
Files usually organized into directories
Access control on most systems to determine who can access
what
OS activities include
Creating and deleting files and directories
Primitives to manipulate files and dirs
Mapping files onto secondary storage
Backup files onto stable (non-volatile) storage media
Department of CSE, Aditya College of Engineering, Surampalem 38
39. Mass-Storage Management
Usually disks used to store data that does not fit in main memory or data
that must be kept for a “long” period of time
Proper management is of central importance
Entire speed of computer operation hinges on disk subsystem and its
algorithms
OS activities
Free-space management
Storage allocation
Disk scheduling
Some storage need not be fast
Tertiary storage includes optical storage, magnetic tape
Still must be managed
Varies between WORM (write-once, read-many-times) and RW (read-
write)
Department of CSE, Aditya College of Engineering, Surampalem 39
40. Performance of Various Levels of Storage
Movement between levels of storage hierarchy can be explicit or implicit
Department of CSE, Aditya College of Engineering, Surampalem 40
42. Protection and Security
Protection – any mechanism for controlling
access of processes or users to resources
defined by the OS
Security – defense of the system against
internal and external attacks
Huge range, including denial-of-service,
worms, viruses, identity theft, theft of
service
Department of CSE, Aditya College of Engineering, Surampalem 42
43. Protection and Security
Systems generally first distinguish among users, to
determine who can do what
User identities (user IDs, security IDs) include
name and associated number, one per user
User ID then associated with all files, processes of
that user to determine access control
Group identifier (group ID) allows set of users to
be defined and controls managed, then also
associated with each process, file
Privilege escalation allows user to change to
effective ID with more rights
Department of CSE, Aditya College of Engineering, Surampalem 43
44. Types of Operating Systems
Simple Batch Systems(Batch operating system)
Time-Sharing Operating Systems(Multi-tasking)
Distributed Systems
Network Operating Systems
Special-Purpose Systems
Real-Time Embedded Systems
Multimedia Systems
Handheld Systems
Department of CSE, Aditya College of Engineering, Surampalem 44
45. Types of Operating Systems
Simple Batch Systems(Batch operating system)
In this type of system, there is no direct interaction
between user and the computer.
The user has to submit a job (written on cards or tape)
to a computer operator.
Then computer operator places a batch of several jobs
on an input device.
Jobs are batched together by type of languages and
requirement.
Then a special program, the monitor, manages the
execution of each program in the batch.
The monitor is always in the main memory and
available for execution.
Department of CSE, Aditya College of Engineering, Surampalem 45
46. Simple Batch Systems(Batch operating system)
(cond.)
Department of CSE, Aditya College of Engineering, Surampalem 46
The disadvantages with Batch Systems are as
follows −
Lack of interaction between the user and
the job.
CPU is often idle, because the speed of the
mechanical I/O devices is slower than the
CPU.
Difficult to provide the desired priority.
47. Time-Sharing Operating Systems(Multi-tasking)
Each task is given some time to execute, so that all the tasks
work smoothly.
Each user gets time of CPU as they use single system.
These systems are also known as Multitasking Systems.
The task can be from single user or from different users also.
The time that each task gets to execute is called quantum.
After this time interval is over OS switches over to next task.
Advantages of Time-Sharing OS:
Each task gets an equal opportunity
Less chances of duplication of software
CPU idle time can be reduced
Department of CSE, Aditya College of Engineering, Surampalem 47
48. Distributed Systems
A distributed system is a collection of physically
separate, possibly heterogeneous computer
systems that are networked to provide the users
with access to the various resources that the
system maintains.
Access to a shared resource increases
computation speed, functionality, data
availability, and reliability.
Department of CSE, Aditya College of Engineering, Surampalem 48
49. Distributed Systems
Advantages of Distributed Operating System:
Failure of one will not affect the other network
communication, as all systems are independent
from each other.
Electronic mail increases the data exchange
speed
Since resources are being shared, computation is
highly fast and durable.
Load on host computer reduces
These systems are easily scalable as many
systems can be easily added to the network.
Delay in data processing reduces.
Department of CSE, Aditya College of Engineering, Surampalem 49
50. Network operating system
An operating system that provides features such as file
sharing across the network and includes a communication
scheme that allows different processes on different
computers to exchange messages.
A computer running a network operating system acts
autonomously from all other computers on the network.
Advantages:
Centralized servers are highly stable.
Security is server managed.
Upgrades to new technologies and hardware can be easily
integrated into the system.
Remote access to servers is possible from different
locations and types of systems.
Department of CSE, Aditya College of Engineering, Surampalem 50
51. Special-Purpose Systems
Real-Time Embedded Systems
Embedded computers are the most prevalent form of
computers in existence. These devices are found
everywhere, from car engines and manufacturing robots
to VCRs and microwave ovens. They tend to have very
specific tasks.
Embedded systems almost always run real-time
operating systems. A real time operating system time
interval to process and respond to inputs is very small.
Examples: Military Software Systems, Space Software
Systems.
Department of CSE, Aditya College of Engineering, Surampalem 51
52. Real-Time Embedded Systems
A real-time system has well-defined, fixed time
constraints. Processing must be done within the
defined constraints, or the system will fail.
For instance, it would not do for a robot arm to
be instructed to halt after it had smashed into
the car it was building.
A real-time system functions correctly only if it
returns the correct result within its time
constraints.
Two types
Hard real time and soft real time
Department of CSE, Aditya College of Engineering, Surampalem 52
53. Multimedia Systems
Multimedia data consist of audio and video files
as well as conventional files. These data differ
from conventional data in that multimedia data—
such as frames of video—must be delivered
(streamed) according to certain time restrictions
Multimedia describes a wide range of
applications that are in popular use today. These
include audio files such as MP3 DVD movies, video
conferencing, and short video clips of movie
previews or news stories downloaded over the
Internet.
Department of CSE, Aditya College of Engineering, Surampalem 53
54. Handheld systems
Handheld systems include personal digital
assistants (PDAs), such as Palm and Pocket-PCs,
and cellular telephones, many of which use
special-purpose embedded operating systems.
Many handheld devices have between 512
KB and 8 MB of memory. As a result, the
operating system and applications must manage
memory efficiently. This includes returning all
allocated memory back to the memory manager
once the memory is no longer being used.
Department of CSE, Aditya College of Engineering, Surampalem 54
55. Handheld systems
Currently, many handheld devices do not use virtual
memory techniques, thus forcing program developers to
work within the confines of limited physical memory.
Processors for most handheld devices often run at a fraction
of the speed of a processor in a PC. Faster processors
require more power. To include a faster processor in a
handheld device would require a larger battery that would
have to be replaced more frequently.
The last issue confronting program designers for handheld
devices is the small display screens typically available. One
approach for displaying the content in web pages is web
clipping, where only a small subset of a web page is
delivered and displayed on the handheld device.
Department of CSE, Aditya College of Engineering, Surampalem 55
56. Operating System Services
One set of operating-system services provides functions that
are helpful to the user:
User interface - Almost all operating systems have a user
interface (UI)
Varies between Command-Line (CLI), Graphics User Interface (GUI),
Batch
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)
Department of CSE, Aditya College of Engineering, Surampalem 56
57. Operating System Services
I/O operations - A running program may require I/O, which
may involve a file or an I/O device
File-system manipulation - The file system is of particular
interest. Obviously, programs need to read and write files
and directories, create and delete them, search them, list
file Information, permission management.
Department of CSE, Aditya College of Engineering, Surampalem 57
58. Operating System Services
One set of operating-system services provides functions that are
helpful to the user (Cont):
Communications – Processes may exchange information, on the
same computer or between computers over a network
Communications may be via shared memory or through message
passing (packets moved by the OS)
Error detection – OS needs to be constantly aware of possible
errors
May occur in the CPU and memory hardware, in I/O devices, in
user program
For each type of error, OS should take the appropriate action to
ensure correct and consistent computing
Debugging facilities can greatly enhance the user’s and
programmer’s abilities to efficiently use the system
Department of CSE, Aditya College of Engineering, Surampalem 58
59. A View of Operating System Services
Department of CSE, Aditya College of Engineering, Surampalem 59
60. Operating System Services
Another set of OS functions exists for ensuring the
efficient operation of the system itself via resource
sharing
Resource allocation - When multiple users or
multiple jobs running concurrently, resources
must be allocated to each of them
Many types of resources - Some (such as CPU
cycles, main memory, and file storage) may
have special allocation code, others (such as
I/O devices) may have general request and
release code
Accounting - To keep track of which users use
how much and what kinds of computer resources
Department of CSE, Aditya College of Engineering, Surampalem 60
61. Operating System Services
Protection and security - The owners of
information stored in a multiuser or networked
computer system may want to control use of that
information, concurrent processes should not
interfere with each other
Protection involves ensuring that all access to
system resources is controlled
Security of the system from outsiders requires
user authentication, extends to defending
external I/O devices from invalid access attempts
If a system is to be protected and secure,
precautions must be instituted throughout it. A
chain is only as strong as its weakest link.
Department of CSE, Aditya College of Engineering, Surampalem 61
62. System Calls
Programming interface to the services provided by the OS
Typically written in a high-level language (C or C++)
Mostly accessed by programs via a high-level Application Program
Interface (API) rather than direct system call use
Three most common APIs are Win32 API for Windows, POSIX API for
POSIX-based systems (including virtually all versions of UNIX,
Linux, and Mac OS X), and Java API for the Java virtual machine
(JVM)
Why use APIs rather than system calls?
(Note that the system-call names used throughout this text are
generic)
Department of CSE, Aditya College of Engineering, Surampalem 62
63. Example of System Calls
System call sequence to copy the contents of one file to another file
Department of CSE, Aditya College of Engineering, Surampalem 63
64. Example of Standard API
Consider the ReadFile() function in the
Win32 API—a function for reading from a file
A description of the parameters passed to ReadFile()
HANDLE file—the file to be read
LPVOID buffer—a buffer where the data will be read into and written from
DWORD bytesToRead—the number of bytes to be read into the buffer
LPDWORD bytesRead—the number of bytes read during the last read
LPOVERLAPPED ovl—indicates if overlapped I/O is being used
Department of CSE, Aditya College of Engineering, Surampalem 64
65. System Call Implementation
Typically, a number associated with each system call
System-call interface maintains a table indexed according to
these numbers
The system call interface invokes intended system call in OS kernel
and returns status of the system call and any return values
The caller need know nothing about how the system call is
implemented
Just needs to obey API and understand what OS will do as a
result call
Most details of OS interface hidden from programmer by API
Managed by run-time support library (set of functions built
into libraries included with compiler)
Department of CSE, Aditya College of Engineering, Surampalem 65
66. API – System Call – OS Relationship
Department of CSE, Aditya College of Engineering, Surampalem 66
67. Standard C Library Example
C program invoking printf() library call, which calls write() system call
Department of CSE, Aditya College of Engineering, Surampalem 67
68. System Call Parameter Passing
Often, more information is required than simply identity of desired
system call
Exact type and amount of information vary according to OS and
call
Three general methods used to pass parameters to the OS
Simplest: pass the parameters in registers
In some cases, may be more parameters than registers
Parameters stored in a block, or table, in memory, and address
of block passed as a parameter in a register
This approach taken by Linux and Solaris
Parameters placed, or pushed, onto the stack by the program
and popped off the stack by the operating system
Block and stack methods do not limit the number or length of
parameters being passed
Department of CSE, Aditya College of Engineering, Surampalem 68
69. Parameter Passing via Table
Department of CSE, Aditya College of Engineering, Surampalem 69
70. Types of System Calls
Process control
File management
Device management
Information maintenance
Communications
Protection
Department of CSE, Aditya College of Engineering, Surampalem 70
71. Examples of Windows and Unix System Calls
Department of CSE, Aditya College of Engineering, Surampalem 71