SlideShare a Scribd company logo
1 of 17
Download to read offline
M. Raihan
Email: rianku11@gmail.com
Operating system
Part: 1
Operating System (OS)
18-Sep-17 3
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.
Continue
18-Sep-17 4
Functions of OS
18-Sep-17 5
Resource Management: Allocation of computer resources (as
processor, memory and I/O devices) to the jobs being executed.
 Job management: Scheduling new jobs for execution according to the
desired priority.
 I/O management: Managing the flow of data and instructions
between the I/O units and the primary memory.
 Data management: Providing data management facilities such as
data organization and retrieval from secondary storage devices.
 Maintaining security, communication of error and control messages
to the users, human operators etc.
Structure of OS
18-Sep-17 6
Structure of OS (continue)
18-Sep-17 7
Hardware
Hardware consists of CPU, Main memory, I/O Devices, etc.
Software (Operating System)
Software includes process management routines, memory
management routines, I/O control routines, file management
routines, etc.
System programs
This layer consists of compilers, Assemblers, linker etc.
Application programs
This is dependent on users need. Ex- Railway reservation system,
Bank database management etc.
Continue
18-Sep-17 8
Usually, operating systems are too large to be stored in memory at a
time.
They can be divided into a number of parts.
Some portions of the operating system must always be present in the
memory which is called kernel or monitor or supervisor.
It performs the basic operations such as starting and terminating
user programs, allocations of memory and files, basic I/O operations
and interrupts.
 The portion of OS which are brought into memory when needed and
removed when not needed, are called transient programs.
Continue
18-Sep-17 9
When the computer system is turned on, OS must be brought into the
computers’ memory from the hard disk.
The process of reading the OS programs from disk, loading it in the main
memory and executing, it is called booting.
The function of the bootstrap program is to perform the booting process.
This program is permanently stored in the main memory (BIOS).
OS can be classified as follows:
 Batch processing
 Multiprogramming
 Time-sharing
 Multiprocessing
 Real time
 Network
Batch Processing OS
18-Sep-17 10
Users do not interact directly to the computer system but
prepared a job.
The user submit the job and get output at some later time.
Common Input devices were card readers and tape drives.
Common output devices were line printers, tape drives and punch
card.
The task of the OS was to transfer the control from one job to the
next.
Batch Processing OS
18-Sep-17 11
One job can be performed at
a time and sequentially.
The OS was always resident
in the memory.
To speed up the processing,
operators batched together
jobs with similar needs and
run them through the
computer as a group.
Batch Processing OS
18-Sep-17 12
Advantages:
User intervention for execution is not required
Reduces the CPU idle time during transition from one job to another
(need not human)
Most repetitive kind of job (s) are often executed as a ‘batch’
Disadvantages:
Makes each job wait in line at each step and often increase its
turnaround time
Suffers from under-utilization of computer resources
Multiprogramming OS
18-Sep-17 13
Several jobs are kept in main
memory at the same time and
the CPU is multiplexed among
them.
Multiprogramming increase
CPU utilization by organizing
jobs so that the CPU always has
one to execute.
The OS keeps several jobs in
memory simultaneously.
Multiprogramming OS
18-Sep-17 14
The OS picks and begins to execute one of the jobs in the
memory
In a multiprogramming system, the OS simply switches to and
execute another job
When that job needs to wait, the CPU is switched to another
job and so on.
The first job finishes waiting and gets the CPU back.
Here the OS must make decisions for the users.
All the jobs that enter the system are kept in the job pool.
Multiprogramming OS
18-Sep-17 15
 If several jobs are ready to be brought into memory, and if there is not enough
room for all of them, then there needs some choosing (job scheduling)
 When the OS selects a job from the job pool, it loads that job into memory for
execution needs some form of memory management.
 Multiple jobs running concurrently require that their ability to affect one another
be limited in all phases of the OS, including process scheduling, disk storage and
memory management.
Multiprogramming OS
18-Sep-17 16
Advantages:
Efficient memory utilization
Throughput increases
CPU is never idle, so performance increases
Thank You
18-Sep-17 17

More Related Content

What's hot

ITFT _ Operating system
ITFT _ Operating systemITFT _ Operating system
ITFT _ Operating systemNavneet Kaur
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating SystemLuka M G
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentationEhetzaz Khan
 
OS - Operating System
OS - Operating System OS - Operating System
OS - Operating System MaqdamYasir
 
OPERATING SYSTEM AND ITS TYPES REPORT
OPERATING SYSTEM AND ITS TYPES REPORTOPERATING SYSTEM AND ITS TYPES REPORT
OPERATING SYSTEM AND ITS TYPES REPORTAmin Hussain
 
3 definition of operating systems
3 definition of operating systems3 definition of operating systems
3 definition of operating systemsmyrajendra
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9myrajendra
 
What is operating system
What is operating systemWhat is operating system
What is operating systemSuvithak
 
Operating system notes
Operating system notesOperating system notes
Operating system notesSANTOSH RATH
 
Services provided by os
Services provided by osServices provided by os
Services provided by osSumant Diwakar
 
Introduction to operating syatem
Introduction to operating syatemIntroduction to operating syatem
Introduction to operating syatemRafi Dar
 
evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating systemAmir Khan
 
operating system
operating systemoperating system
operating systemIbbad shah
 

What's hot (20)

ITFT _ Operating system
ITFT _ Operating systemITFT _ Operating system
ITFT _ Operating system
 
introduction To Operating System
introduction To Operating Systemintroduction To Operating System
introduction To Operating System
 
Operating system presentation
Operating system presentationOperating system presentation
Operating system presentation
 
OPERATING SYSTEM
OPERATING SYSTEMOPERATING SYSTEM
OPERATING SYSTEM
 
OS - Operating System
OS - Operating System OS - Operating System
OS - Operating System
 
OPERATING SYSTEM AND ITS TYPES REPORT
OPERATING SYSTEM AND ITS TYPES REPORTOPERATING SYSTEM AND ITS TYPES REPORT
OPERATING SYSTEM AND ITS TYPES REPORT
 
3 definition of operating systems
3 definition of operating systems3 definition of operating systems
3 definition of operating systems
 
An Introduction to Operating Systems
An Introduction to Operating SystemsAn Introduction to Operating Systems
An Introduction to Operating Systems
 
Unit 4 software
Unit 4  softwareUnit 4  software
Unit 4 software
 
Operating system services 9
Operating system services 9Operating system services 9
Operating system services 9
 
What is operating system
What is operating systemWhat is operating system
What is operating system
 
Operating system notes
Operating system notesOperating system notes
Operating system notes
 
Services provided by os
Services provided by osServices provided by os
Services provided by os
 
Introduction to operating syatem
Introduction to operating syatemIntroduction to operating syatem
Introduction to operating syatem
 
Operating system-1
Operating system-1Operating system-1
Operating system-1
 
Operating System Lecture 1
Operating System Lecture 1Operating System Lecture 1
Operating System Lecture 1
 
Welcome
WelcomeWelcome
Welcome
 
evolution of operating system
evolution of operating systemevolution of operating system
evolution of operating system
 
Operating System
Operating System Operating System
Operating System
 
operating system
operating systemoperating system
operating system
 

Similar to Lecture 13

operating system
operating systemoperating system
operating systemKadianAman
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating systemJayesh Chauhan
 
INTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAM
INTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAMINTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAM
INTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAMSaraswathiRamalingam
 
computer software industry and I will be available to meet
computer software industry and I will be available to meetcomputer software industry and I will be available to meet
computer software industry and I will be available to meetshubhamgupta7133
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture NotesFellowBuddy.com
 
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.pdfrohitbaweja26
 
Application software and system software
Application software and system softwareApplication software and system software
Application software and system softwareshujra
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating systemmahfuzur32785
 
Operating System-Introduction
Operating System-IntroductionOperating System-Introduction
Operating System-IntroductionShipra Swati
 
Lecture1423726024
Lecture1423726024Lecture1423726024
Lecture1423726024deepakjeetu
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1bhartigole1
 
Ia syllabus Topic computer Related
Ia syllabus Topic computer RelatedIa syllabus Topic computer Related
Ia syllabus Topic computer RelatedOnline Job Study
 

Similar to Lecture 13 (20)

operating system
operating systemoperating system
operating system
 
Operating system
Operating systemOperating system
Operating system
 
Fundamentals of operating system
Fundamentals of operating systemFundamentals of operating system
Fundamentals of operating system
 
INTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAM
INTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAMINTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAM
INTRODUCTION TO INFORMATION TECHNOLOGY SARASWATHI RAMALINGAM
 
computer software industry and I will be available to meet
computer software industry and I will be available to meetcomputer software industry and I will be available to meet
computer software industry and I will be available to meet
 
Os by nishant raghav
Os by nishant raghavOs by nishant raghav
Os by nishant raghav
 
Operating System Lecture Notes
Operating System Lecture NotesOperating System Lecture Notes
Operating System Lecture Notes
 
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
 
Data processing
Data processingData processing
Data processing
 
Application software and system software
Application software and system softwareApplication software and system software
Application software and system software
 
cc112 prog 1 topic 1.pptx
cc112 prog 1 topic 1.pptxcc112 prog 1 topic 1.pptx
cc112 prog 1 topic 1.pptx
 
Introduction of operating system
Introduction of operating systemIntroduction of operating system
Introduction of operating system
 
Os unit 1
Os unit 1Os unit 1
Os unit 1
 
Ch1
Ch1Ch1
Ch1
 
computer Unit 7
computer Unit 7computer Unit 7
computer Unit 7
 
Operating System-Introduction
Operating System-IntroductionOperating System-Introduction
Operating System-Introduction
 
Lecture1423726024
Lecture1423726024Lecture1423726024
Lecture1423726024
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
 
Ch1 - OS.pdf
Ch1 - OS.pdfCh1 - OS.pdf
Ch1 - OS.pdf
 
Ia syllabus Topic computer Related
Ia syllabus Topic computer RelatedIa syllabus Topic computer Related
Ia syllabus Topic computer Related
 

More from M. Raihan

Amplifiers and biopotential amplifiers new
Amplifiers and biopotential amplifiers newAmplifiers and biopotential amplifiers new
Amplifiers and biopotential amplifiers newM. Raihan
 
Comparison of fnir with other neuroimaging modalities relation between eeg sy...
Comparison of fnir with other neuroimaging modalities relation between eeg sy...Comparison of fnir with other neuroimaging modalities relation between eeg sy...
Comparison of fnir with other neuroimaging modalities relation between eeg sy...M. Raihan
 

More from M. Raihan (20)

Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Lecture 2
Lecture 2Lecture 2
Lecture 2
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Amplifiers and biopotential amplifiers new
Amplifiers and biopotential amplifiers newAmplifiers and biopotential amplifiers new
Amplifiers and biopotential amplifiers new
 
Comparison of fnir with other neuroimaging modalities relation between eeg sy...
Comparison of fnir with other neuroimaging modalities relation between eeg sy...Comparison of fnir with other neuroimaging modalities relation between eeg sy...
Comparison of fnir with other neuroimaging modalities relation between eeg sy...
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
Lecture 9
Lecture 9Lecture 9
Lecture 9
 
Lecture 8
Lecture 8Lecture 8
Lecture 8
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Lecture 6
Lecture 6Lecture 6
Lecture 6
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Lecture 18
Lecture 18Lecture 18
Lecture 18
 
Lecture 17
Lecture 17Lecture 17
Lecture 17
 
Lecture 16
Lecture 16Lecture 16
Lecture 16
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 

Recently uploaded

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
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.MaryamAhmad92
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
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.pdfPoh-Sun Goh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
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.pptxAmanpreet Kaur
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
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.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
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
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
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
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Lecture 13

  • 3. Operating System (OS) 18-Sep-17 3 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.
  • 5. Functions of OS 18-Sep-17 5 Resource Management: Allocation of computer resources (as processor, memory and I/O devices) to the jobs being executed.  Job management: Scheduling new jobs for execution according to the desired priority.  I/O management: Managing the flow of data and instructions between the I/O units and the primary memory.  Data management: Providing data management facilities such as data organization and retrieval from secondary storage devices.  Maintaining security, communication of error and control messages to the users, human operators etc.
  • 7. Structure of OS (continue) 18-Sep-17 7 Hardware Hardware consists of CPU, Main memory, I/O Devices, etc. Software (Operating System) Software includes process management routines, memory management routines, I/O control routines, file management routines, etc. System programs This layer consists of compilers, Assemblers, linker etc. Application programs This is dependent on users need. Ex- Railway reservation system, Bank database management etc.
  • 8. Continue 18-Sep-17 8 Usually, operating systems are too large to be stored in memory at a time. They can be divided into a number of parts. Some portions of the operating system must always be present in the memory which is called kernel or monitor or supervisor. It performs the basic operations such as starting and terminating user programs, allocations of memory and files, basic I/O operations and interrupts.  The portion of OS which are brought into memory when needed and removed when not needed, are called transient programs.
  • 9. Continue 18-Sep-17 9 When the computer system is turned on, OS must be brought into the computers’ memory from the hard disk. The process of reading the OS programs from disk, loading it in the main memory and executing, it is called booting. The function of the bootstrap program is to perform the booting process. This program is permanently stored in the main memory (BIOS). OS can be classified as follows:  Batch processing  Multiprogramming  Time-sharing  Multiprocessing  Real time  Network
  • 10. Batch Processing OS 18-Sep-17 10 Users do not interact directly to the computer system but prepared a job. The user submit the job and get output at some later time. Common Input devices were card readers and tape drives. Common output devices were line printers, tape drives and punch card. The task of the OS was to transfer the control from one job to the next.
  • 11. Batch Processing OS 18-Sep-17 11 One job can be performed at a time and sequentially. The OS was always resident in the memory. To speed up the processing, operators batched together jobs with similar needs and run them through the computer as a group.
  • 12. Batch Processing OS 18-Sep-17 12 Advantages: User intervention for execution is not required Reduces the CPU idle time during transition from one job to another (need not human) Most repetitive kind of job (s) are often executed as a ‘batch’ Disadvantages: Makes each job wait in line at each step and often increase its turnaround time Suffers from under-utilization of computer resources
  • 13. Multiprogramming OS 18-Sep-17 13 Several jobs are kept in main memory at the same time and the CPU is multiplexed among them. Multiprogramming increase CPU utilization by organizing jobs so that the CPU always has one to execute. The OS keeps several jobs in memory simultaneously.
  • 14. Multiprogramming OS 18-Sep-17 14 The OS picks and begins to execute one of the jobs in the memory In a multiprogramming system, the OS simply switches to and execute another job When that job needs to wait, the CPU is switched to another job and so on. The first job finishes waiting and gets the CPU back. Here the OS must make decisions for the users. All the jobs that enter the system are kept in the job pool.
  • 15. Multiprogramming OS 18-Sep-17 15  If several jobs are ready to be brought into memory, and if there is not enough room for all of them, then there needs some choosing (job scheduling)  When the OS selects a job from the job pool, it loads that job into memory for execution needs some form of memory management.  Multiple jobs running concurrently require that their ability to affect one another be limited in all phases of the OS, including process scheduling, disk storage and memory management.
  • 16. Multiprogramming OS 18-Sep-17 16 Advantages: Efficient memory utilization Throughput increases CPU is never idle, so performance increases