SlideShare a Scribd company logo
1 of 21
K.K. WAGH POLYTECHNIC, NASHIK-03
DEPARTMENT OF COMPUTER TECHNOLOGY
(Second Shift)
Chapter-01
Introduction to
System Programming
System Software consists of a variety of programs that
support the operation of a computer.
The software makes it possible for the users to focus
on an application or other problem to be solved,
without needing to know the details of how the
machine works internally.
A System program is a program which is required for
the effective execution of a general user (application)
program.
The term execution here includes all activities namely
writing program code ,editing, storage, translation,
relocation, linking and eventual execution.
System Software
System Programs
Operating
System
Hardware
Application Programs
Hierarchy of computer
components
System Software
Components of System Software
Assembler
Linker
Loader
Macro processor
Text editor
Compiler
Operating system
Debugging system
Source Code Control System
1. Assemblers:
Programmers found it difficult to write or read programs in
machine language, so for more convenience they began to use a
mnemonic for each machine instruction, which subsequently
translate into machine language.
Such a mnemonic machine language is now called as an
assembly language. Program known as assembler were written to
automate the translation of assembly language into machine
language.
The input to an assembler is an assembly language program.
Output is an object program plus information that enables the loader
to prepare the object program for information.
Evolution of System Software
Evolution of System Software
2. Loaders :
Once the assembler produces an object program, that program
must be placed into memory and executed. It is the purpose of the
loader to assure that object program are placed in memory in an
executable form.
A loader is a program that places programs into main memory
and prepares them for execution.
There are various loading schemes: absolute, compile-and-go,
relocating, ,dynamic linking and direct-linking. In general loader
must load, relocate, and link the program.
The period of execution of user’s program is called execution
time. The period of translating a user’s program is called assembly or
compile time. The period of loading and preparing an object program
for execution is called load time.
Evolution of System Software
3. Macros:
To avoid the repetition of the identical parts of code in a program
operating system provide a macro processing facility, which permits
the programmer to define an abbreviation for a part of his program
and to use the abbreviation in his program.
The macro processor treats the identical parts of the program
defined by abbreviation as a macro definition.
The macro processor substitutes the definition for all occurrences
of the abbreviation (macro call) in the program.
Evolution of System Software
4. Compilers:
A compiler is a program that accepts a program written in high
level language and produce an object program.
e.g. FORTRAN, COBOL, C etc.
Modern compilers must interact closely with the operating
system to handle statements concerning the hardware interrupts of a
computer system.
Evolution of System Software
5. Operating Systems:
An operating system is an interface between user and computer
hardware.
An OS is concerned with the allocation of resources and services,
such as memory, processors, devices and information. The OS
includes programs to manage these resources, such as bus controller,
a scheduler, memory management module, I/O programs, and a file
system.
Evolution of Operating System
Historical Review of Operating Systems:
1. Monitors
-Monitors are the simplest operating systems.
-Single user systems .
-Allow user interaction.
2. Simple Batch Systems
-The user prepares a job (which consists of program, data and some
control information), submits it to the computer operator and receives
the output after the program is executed.
-The job is usually punched on cards and the output is usually
printed.
-To speed up processing, jobs with similar needs can be batched
together and run as a group.
-The operating system is always in memory and its job is to transfer
control automatically from one job to the next.
card reader
CPU
I/O line printer
As the I/O devices are slower than the speed of the CPU (the
difference may be three orders of magnitude or more), the CPU is often
idle. For using the system more efficiently, cards can be read from the
card reader onto the disk. The operating system records their location on
disk in a table. When a job requests the printer, the output is copied into a
system buffer and is written to the disk. When the job is completed, the
output is printed. This form of processing is called spooling
(simultaneous peripheral operation on line).
Evolution of Operating System
Evolution of Operating System
3. Multiprogrammed Batch Systems:
The operating system keeps several jobs (a subset of jobs in the
job pool) in memory at a time. During the execution of one job, if it
waits for an I/O operation to complete, the operating system switches to
and executes another job. In this way, as long as there is always some job
to execute, the CPU will never be idle.
4. Time-Sharing Systems
In multiprogrammed batch systems, the user cannot interact with
the program during its execution. In time-sharing or multitasking
systems, multiple jobs are executed by the CPU switching between them,
but the switching occurs so frequently that the user may interact with
each program while it is running. Time-sharing operating systems:
-uses CPU scheduling and multiprogramming,
-uses time-slice mechanism,
-allows interactive I/O,
-allows many users to share the computer simultaneously.
Evolution of Operating System
5. Real time operating systems:
Used whenever a large number of external events have to be treated
in a short or limited interval of time
Support for multiprogramming/multi-tasking
Main goal:
Minimization of the response time to service the external events.
Memory management:
-Concurrent processes are loaded into the memory.
-Support for protection and inter-process communication.
I/O management:
-Critical in time
-Processes dealing with I/O are directly connected to the interrupt
vectors (or handling the interrupt requests)
File management:
It may be missing
If exists, it should comply with requirements for timesharing
systems + it should satisfy the requirements for real time systems
Evolution of Operating System
6. Distributed operating systems
Distributed systems also have more than one processor. Each
processor has its local memory. Processors communicate through
communication lines (eg. Telephone lines, high-speed bus, etc.).
Processors are referred to as sites, nodes, computers depending on the
context in which they are mentioned. Multicomputer systems are loosely
coupled. Example applications are e-mail, web server, etc.
Evolution of Operating System
Foundation of System Programming
Machine Structure
Fig. illustrates the
structure of the
CPU for a typical
von Neuman
machine , such as
the IBM
System/360.
The CPU consists of an instruction interpreter, a location counter, an
instruction register and various working registers and general registers.
Instruction Interpreter:
It is group of electrical circuits(hardware), that execute the
instructions fetched from memory.
Location Counter(LC):
It is also called as Program Counter(PC) or Instruction
Counter(IC), is a hardware memory device which denotes the location of
the current instruction being executed.
Instruction Register(IR):
A copy of current instruction is stored in the Instruction
Register.
Machine Structure
Working & General Registers:
The working registers (WR) are memory devices that serves as
“scratch pads” for the instructions interpreter, while the general
registers(GR) are used by the programmer as storage location and for
special functions.
Memory Address Register(MAR) & Memory Buffer Register(MBR)
The primary interface between the memory and CPU is via the
MAR and MBR.
The MAR contains the address of the memory location that is to
be read from or store into.
The MBR contains a copy of the designated memory location
specified by MAR after a “read” or the new contents of the memory
locations prior “write”.
Machine Structure
Memory Controller:
It is hardware that transfers data between the MBR and primary
memory locations the address of which is in the MAR.
I/O Channel
The I/O channel interpret special instructions for inputting and
outputting information from the memory.
Machine Structure
Thank You

More Related Content

What's hot

Direct linking loader
Direct linking loaderDirect linking loader
Direct linking loader
babyparul
 

What's hot (20)

Language processing activity
Language processing activityLanguage processing activity
Language processing activity
 
Batch operating system
Batch operating system Batch operating system
Batch operating system
 
Lecture 01 introduction to compiler
Lecture 01 introduction to compilerLecture 01 introduction to compiler
Lecture 01 introduction to compiler
 
Unit 4 sp macro
Unit 4 sp macroUnit 4 sp macro
Unit 4 sp macro
 
Unit 3
Unit 3Unit 3
Unit 3
 
Single pass assembler
Single pass assemblerSingle pass assembler
Single pass assembler
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
Software tools
Software toolsSoftware tools
Software tools
 
Hardware and software parallelism
Hardware and software parallelismHardware and software parallelism
Hardware and software parallelism
 
System software
System softwareSystem software
System software
 
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMI
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMIEvolving role of Software,Legacy software,CASE tools,Process Models,CMMI
Evolving role of Software,Legacy software,CASE tools,Process Models,CMMI
 
Direct linking loader
Direct linking loaderDirect linking loader
Direct linking loader
 
source code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniquessource code metrics and other maintenance tools and techniques
source code metrics and other maintenance tools and techniques
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Techniques & applications of Compiler
Techniques & applications of CompilerTechniques & applications of Compiler
Techniques & applications of Compiler
 
loaders and linkers
 loaders and linkers loaders and linkers
loaders and linkers
 
Basic blocks and flow graph in Compiler Construction
Basic blocks and flow graph in Compiler ConstructionBasic blocks and flow graph in Compiler Construction
Basic blocks and flow graph in Compiler Construction
 
Introduction to Compiler design
Introduction to Compiler design Introduction to Compiler design
Introduction to Compiler design
 
Interpreter
InterpreterInterpreter
Interpreter
 
Computer Language Translator
Computer Language TranslatorComputer Language Translator
Computer Language Translator
 

Viewers also liked

Microprocessors8085
Microprocessors8085Microprocessors8085
Microprocessors8085
Vikas Kumar
 
System programming note
System programming noteSystem programming note
System programming note
SANTOSH RATH
 
Secuencia didactica wiki
Secuencia didactica wikiSecuencia didactica wiki
Secuencia didactica wiki
maripala12
 
Przestrzeń Miasta - Maciej Jędraszek
Przestrzeń Miasta - Maciej JędraszekPrzestrzeń Miasta - Maciej Jędraszek
Przestrzeń Miasta - Maciej Jędraszek
ecommerce poland expo
 
Williams Brochure Welding Products
Williams Brochure Welding ProductsWilliams Brochure Welding Products
Williams Brochure Welding Products
John Turley
 
updated BE RETRO FINAL PROJECT
updated BE RETRO FINAL PROJECTupdated BE RETRO FINAL PROJECT
updated BE RETRO FINAL PROJECT
Kamyle Glover
 
Freds Resume&Portfolio08
Freds Resume&Portfolio08Freds Resume&Portfolio08
Freds Resume&Portfolio08
FredBratteson
 

Viewers also liked (20)

System programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathaniSystem programs in o.s. for bca and bscit students by hardik nathani
System programs in o.s. for bca and bscit students by hardik nathani
 
Microprocessors8085
Microprocessors8085Microprocessors8085
Microprocessors8085
 
System programming note
System programming noteSystem programming note
System programming note
 
Spr ch-02
Spr ch-02Spr ch-02
Spr ch-02
 
Marketing virtual
Marketing virtualMarketing virtual
Marketing virtual
 
Secuencia didactica wiki
Secuencia didactica wikiSecuencia didactica wiki
Secuencia didactica wiki
 
Presentación Cómo estudiar el medio para posicionar la MARCA
Presentación   Cómo estudiar el medio para posicionar la MARCAPresentación   Cómo estudiar el medio para posicionar la MARCA
Presentación Cómo estudiar el medio para posicionar la MARCA
 
Przestrzeń Miasta - Maciej Jędraszek
Przestrzeń Miasta - Maciej JędraszekPrzestrzeń Miasta - Maciej Jędraszek
Przestrzeń Miasta - Maciej Jędraszek
 
Williams Brochure Welding Products
Williams Brochure Welding ProductsWilliams Brochure Welding Products
Williams Brochure Welding Products
 
I'm international - Conferencia Mike Mösch
I'm international  - Conferencia Mike Mösch I'm international  - Conferencia Mike Mösch
I'm international - Conferencia Mike Mösch
 
Virtual and Augmented Reality Analytics Digility
Virtual and Augmented Reality Analytics DigilityVirtual and Augmented Reality Analytics Digility
Virtual and Augmented Reality Analytics Digility
 
Employer Brandung: Gemeinsam statt einsam.
Employer Brandung: Gemeinsam statt einsam.Employer Brandung: Gemeinsam statt einsam.
Employer Brandung: Gemeinsam statt einsam.
 
Espacio aereo
Espacio aereoEspacio aereo
Espacio aereo
 
Predicador de la gracia
Predicador de la graciaPredicador de la gracia
Predicador de la gracia
 
updated BE RETRO FINAL PROJECT
updated BE RETRO FINAL PROJECTupdated BE RETRO FINAL PROJECT
updated BE RETRO FINAL PROJECT
 
Colombia Prospera con Tolima
Colombia Prospera con TolimaColombia Prospera con Tolima
Colombia Prospera con Tolima
 
Freds Resume&Portfolio08
Freds Resume&Portfolio08Freds Resume&Portfolio08
Freds Resume&Portfolio08
 
Musica maldita
Musica malditaMusica maldita
Musica maldita
 
Hu-Friedy Hand Essentials
Hu-Friedy Hand EssentialsHu-Friedy Hand Essentials
Hu-Friedy Hand Essentials
 
¿De qué hablamos cuando hablamos de Social Media? Una charla a futuros commun...
¿De qué hablamos cuando hablamos de Social Media? Una charla a futuros commun...¿De qué hablamos cuando hablamos de Social Media? Una charla a futuros commun...
¿De qué hablamos cuando hablamos de Social Media? Una charla a futuros commun...
 

Similar to Spr ch-01

Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
Sohaib Danish
 
What is operating system
What is operating systemWhat is operating system
What is operating system
Suvithak
 
Operting system
Operting systemOperting system
Operting system
KAnurag2
 
Operating System
Operating SystemOperating System
Operating System
guest8b0942
 
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
SURBHI SAROHA
 
SYCS OS PPT INTRODUCTION LECTURE-01.pdf
SYCS OS PPT INTRODUCTION LECTURE-01.pdfSYCS OS PPT INTRODUCTION LECTURE-01.pdf
SYCS OS PPT INTRODUCTION LECTURE-01.pdf
Abhinov Shukla
 

Similar to Spr ch-01 (20)

Operating system concepts (notes)
Operating system concepts (notes)Operating system concepts (notes)
Operating system concepts (notes)
 
Unit 1 q&a
Unit  1 q&aUnit  1 q&a
Unit 1 q&a
 
System Programming VV Notes.pdf
System Programming VV Notes.pdfSystem Programming VV Notes.pdf
System Programming VV Notes.pdf
 
computer Unit 7
computer Unit 7computer Unit 7
computer Unit 7
 
LM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system callsLM1 - Computer System Overview, system calls
LM1 - Computer System Overview, system calls
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
MYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptxMYSQL DATABASE Operating System Part2 (1).pptx
MYSQL DATABASE Operating System Part2 (1).pptx
 
3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf3330701_unit-1_operating-system-concepts.pdf
3330701_unit-1_operating-system-concepts.pdf
 
Operating system
Operating systemOperating system
Operating system
 
Ch1
Ch1Ch1
Ch1
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2Advanced computer architecture lesson 1 and 2
Advanced computer architecture lesson 1 and 2
 
Ch1
Ch1Ch1
Ch1
 
Operting system
Operting systemOperting system
Operting system
 
Operating system
Operating systemOperating system
Operating system
 
c and data structures first unit notes (jntuh syllabus)
c and data structures first unit notes (jntuh syllabus)c and data structures first unit notes (jntuh syllabus)
c and data structures first unit notes (jntuh syllabus)
 
Introduction to OS 1.ppt
Introduction to OS 1.pptIntroduction to OS 1.ppt
Introduction to OS 1.ppt
 
Operating System
Operating SystemOperating System
Operating System
 
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
 
SYCS OS PPT INTRODUCTION LECTURE-01.pdf
SYCS OS PPT INTRODUCTION LECTURE-01.pdfSYCS OS PPT INTRODUCTION LECTURE-01.pdf
SYCS OS PPT INTRODUCTION LECTURE-01.pdf
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Spr ch-01

  • 1. K.K. WAGH POLYTECHNIC, NASHIK-03 DEPARTMENT OF COMPUTER TECHNOLOGY (Second Shift) Chapter-01 Introduction to System Programming
  • 2. System Software consists of a variety of programs that support the operation of a computer. The software makes it possible for the users to focus on an application or other problem to be solved, without needing to know the details of how the machine works internally. A System program is a program which is required for the effective execution of a general user (application) program. The term execution here includes all activities namely writing program code ,editing, storage, translation, relocation, linking and eventual execution. System Software
  • 4. Components of System Software Assembler Linker Loader Macro processor Text editor Compiler Operating system Debugging system Source Code Control System
  • 5. 1. Assemblers: Programmers found it difficult to write or read programs in machine language, so for more convenience they began to use a mnemonic for each machine instruction, which subsequently translate into machine language. Such a mnemonic machine language is now called as an assembly language. Program known as assembler were written to automate the translation of assembly language into machine language. The input to an assembler is an assembly language program. Output is an object program plus information that enables the loader to prepare the object program for information. Evolution of System Software
  • 6. Evolution of System Software 2. Loaders : Once the assembler produces an object program, that program must be placed into memory and executed. It is the purpose of the loader to assure that object program are placed in memory in an executable form. A loader is a program that places programs into main memory and prepares them for execution. There are various loading schemes: absolute, compile-and-go, relocating, ,dynamic linking and direct-linking. In general loader must load, relocate, and link the program. The period of execution of user’s program is called execution time. The period of translating a user’s program is called assembly or compile time. The period of loading and preparing an object program for execution is called load time.
  • 7. Evolution of System Software 3. Macros: To avoid the repetition of the identical parts of code in a program operating system provide a macro processing facility, which permits the programmer to define an abbreviation for a part of his program and to use the abbreviation in his program. The macro processor treats the identical parts of the program defined by abbreviation as a macro definition. The macro processor substitutes the definition for all occurrences of the abbreviation (macro call) in the program.
  • 8. Evolution of System Software 4. Compilers: A compiler is a program that accepts a program written in high level language and produce an object program. e.g. FORTRAN, COBOL, C etc. Modern compilers must interact closely with the operating system to handle statements concerning the hardware interrupts of a computer system.
  • 9. Evolution of System Software 5. Operating Systems: An operating system is an interface between user and computer hardware. An OS is concerned with the allocation of resources and services, such as memory, processors, devices and information. The OS includes programs to manage these resources, such as bus controller, a scheduler, memory management module, I/O programs, and a file system.
  • 10. Evolution of Operating System Historical Review of Operating Systems: 1. Monitors -Monitors are the simplest operating systems. -Single user systems . -Allow user interaction. 2. Simple Batch Systems -The user prepares a job (which consists of program, data and some control information), submits it to the computer operator and receives the output after the program is executed. -The job is usually punched on cards and the output is usually printed. -To speed up processing, jobs with similar needs can be batched together and run as a group. -The operating system is always in memory and its job is to transfer control automatically from one job to the next.
  • 11. card reader CPU I/O line printer As the I/O devices are slower than the speed of the CPU (the difference may be three orders of magnitude or more), the CPU is often idle. For using the system more efficiently, cards can be read from the card reader onto the disk. The operating system records their location on disk in a table. When a job requests the printer, the output is copied into a system buffer and is written to the disk. When the job is completed, the output is printed. This form of processing is called spooling (simultaneous peripheral operation on line). Evolution of Operating System
  • 12. Evolution of Operating System 3. Multiprogrammed Batch Systems: The operating system keeps several jobs (a subset of jobs in the job pool) in memory at a time. During the execution of one job, if it waits for an I/O operation to complete, the operating system switches to and executes another job. In this way, as long as there is always some job to execute, the CPU will never be idle.
  • 13. 4. Time-Sharing Systems In multiprogrammed batch systems, the user cannot interact with the program during its execution. In time-sharing or multitasking systems, multiple jobs are executed by the CPU switching between them, but the switching occurs so frequently that the user may interact with each program while it is running. Time-sharing operating systems: -uses CPU scheduling and multiprogramming, -uses time-slice mechanism, -allows interactive I/O, -allows many users to share the computer simultaneously. Evolution of Operating System
  • 14. 5. Real time operating systems: Used whenever a large number of external events have to be treated in a short or limited interval of time Support for multiprogramming/multi-tasking Main goal: Minimization of the response time to service the external events. Memory management: -Concurrent processes are loaded into the memory. -Support for protection and inter-process communication. I/O management: -Critical in time -Processes dealing with I/O are directly connected to the interrupt vectors (or handling the interrupt requests) File management: It may be missing If exists, it should comply with requirements for timesharing systems + it should satisfy the requirements for real time systems Evolution of Operating System
  • 15. 6. Distributed operating systems Distributed systems also have more than one processor. Each processor has its local memory. Processors communicate through communication lines (eg. Telephone lines, high-speed bus, etc.). Processors are referred to as sites, nodes, computers depending on the context in which they are mentioned. Multicomputer systems are loosely coupled. Example applications are e-mail, web server, etc. Evolution of Operating System
  • 16. Foundation of System Programming
  • 17. Machine Structure Fig. illustrates the structure of the CPU for a typical von Neuman machine , such as the IBM System/360.
  • 18. The CPU consists of an instruction interpreter, a location counter, an instruction register and various working registers and general registers. Instruction Interpreter: It is group of electrical circuits(hardware), that execute the instructions fetched from memory. Location Counter(LC): It is also called as Program Counter(PC) or Instruction Counter(IC), is a hardware memory device which denotes the location of the current instruction being executed. Instruction Register(IR): A copy of current instruction is stored in the Instruction Register. Machine Structure
  • 19. Working & General Registers: The working registers (WR) are memory devices that serves as “scratch pads” for the instructions interpreter, while the general registers(GR) are used by the programmer as storage location and for special functions. Memory Address Register(MAR) & Memory Buffer Register(MBR) The primary interface between the memory and CPU is via the MAR and MBR. The MAR contains the address of the memory location that is to be read from or store into. The MBR contains a copy of the designated memory location specified by MAR after a “read” or the new contents of the memory locations prior “write”. Machine Structure
  • 20. Memory Controller: It is hardware that transfers data between the MBR and primary memory locations the address of which is in the MAR. I/O Channel The I/O channel interpret special instructions for inputting and outputting information from the memory. Machine Structure