SlideShare a Scribd company logo
© DOC, Imperial College, 2006
Operating Systems Concepts
An introduction to the software that makes computers
usable, ensures that systems can be made secure and
provides the environment for software to be a marketable
commodity
Acknowledgement: Paul Kelly
© DOC, Imperial College, 2006
What is an Operating System
• The OS is software - it’s a program It “virtualises”
your computer
• Your computer needs to be virtualised… trust me!!
• Because that’s what makes it possible to buy and
sell computer programs
• And that’s a major economic activity
© DOC, Imperial College, 2006
There are lots…
• Microsoft: Windows ME, Windows 2000, Windows CE
• Linux
• BSD (FreeBSD, NetBSD)
• Sun: Solaris
• IBM: AIX
• Compaq: Tru64 Unix, OpenVMS
• Hewlett-Packard: HP-UX
• Apple: MacOS-8, MacOS-X
• Symbian: EPOC
• PalmOS
• QNX
• VXWorks
• LynxOS
• MVS, AS/400
• Many many more, mostly more-or-less Unix/POSIX compatible eg MESHIX
• Literally thousands of variants and research prototypes eg MACH, Plan9, Pebble, Go!
• Sun (again): the Java Virtual Machine is it??? JOS??
Various kinds of Unix
Designed for handhelds
Embedded real-time
© DOC, Imperial College, 2006
Opening up the software market
• More than 90% of all software products sold are designed for just one virtual machine
• This has been quite good for their business...
Microsoft Corporation's Revenue
$0
$5,000
$10,000
$15,000
$20,000
$25,000
F
Y
8
5
F
Y
8
6
F
Y
8
7
F
Y
8
8
F
Y
8
9
F
Y
9
0
F
Y
9
1
F
Y
9
2
F
Y
9
3
F
Y
9
4
F
Y
9
5
F
Y
9
6
F
Y
9
7
F
Y
9
8
F
Y
9
9
F
Y
0
0
Fiscal year (from incorporation)
Revenue(millionsofUS$)
Source:
http://www.microsoft.com/msft/history.htm
Seealsohttp://www-cs-students.stanford.edu/~kkoster/microsoft/
© DOC, Imperial College, 2006
Overview of Course
• What is an OS
• Terminology
• Kinds of OS
• How does the OS work
• What principles underpin OS Operation
• What does an OS look like ‘under the bonnet’
© DOC, Imperial College, 2006
Recommended textbooks
Modern Operating
Systems. A Tanenbaum
Prentice-Hall
•Operating Systems (4th
edition). William Stallings,
Prentice-Hall 2001
•Operating Systems: a
modern perspective (2nd
edition). Gary Nutt, Addison
Wesley, 2000
© DOC, Imperial College, 2006
THERE IS NO SPOON
• Read books – course built on classic authoritative textbook
• Exam designed to test your understanding and ability to
apply it to new ideas
• Some exam questions will introduce an idea not covered in
the course
• But will ask you to explore an idea using what you’ve
learned
• The book might have even covered that!
© DOC, Imperial College, 2006
Chapter 1: - Introduction to OS
1945 to 1955
• No operating system
• human operators
•What did the first operating system look like?
© DOC, Imperial College, 2006
1956 to 1965
• Transistors and batch systems ,
• Clear distinction between designers, builders, operators, programmers,
and maintenance personnel,
• I/O channel,
• Read ahead / spooling,
• Interrupts/ exceptions,
• Minimal protection,
• Libraries / JCL
© DOC, Imperial College, 2006
1965 to 1980
• ICs and Multiprogramming,
• System 360 and S/370 family of computers,
• Spooling (simultaneous peripheral operation on-line),
• Time sharing, On-line storage for System programs,
• User programs and data, Program libraries,
• Virtual memory,
• Multiprocessor configurations e.g. MULTICS
© DOC, Imperial College, 2006
When people looked like this, we saw the next generation
THE SECOND WAVE OF COMPUTING
© DOC, Imperial College, 2006
1980-now
•Personal computers and workstations
•MS-DOS and Unix
•Massively parallel systems
•Pipelining
•Array processing / SIMD
•General multiprocessing / MIMD
•Symmetric multiprocessing / SMD
•Any process and any thread can run on
any available processor
•Computer networks (communication
aspect) -- network operating systems
•Distributed computing -- distributed
operating systems
Cray 2
© DOC, Imperial College, 2006 Connection Machine 5
© DOC, Imperial College, 2006
What is an OS
• A program, C or C++
• Loads and runs other programs
• Application programs might wish to:
– Draw on the screen
– Interact via a keyboard, mouse etc
– Access the hard disk (files)
– Communicate with other application programs
• The OS should provide a consistent way to do this
– Works on whatever hardware you have.
© DOC, Imperial College, 2006
Virtual or Abstract Machines
• Effectively wraps the hardware to provide a
‘virtual’ machine
• Consistent interface to devices and services
• What are the limits/difficulties?
© DOC, Imperial College, 2006
Challenges to the VM approach
• Performance
– machine too slow to run application,
– I want to safely run lots of applications!
• Resources - Machine too little memory
© DOC, Imperial College, 2006
Overcoming VM challenges
• Most OSs solve this problem
• Uses virtual memory – paging
– Application or program requiring 100MBytes of memory
can run on just 10 Mbytes of physical memory using VM
– Slowly mind!
• What if I want to run more than one program?
– Can you read mail and eat? – you have one brain
– Processor switch from one process to another
– Regularly, use a timer to interrupt the processor
– Most do this fairly (according to application needs)
• Time-slicing – scheduling and priority
© DOC, Imperial College, 2006
Overcoming VM challenges
• What if the other programs behave maliciously e.g. try to
steal my secrets?
– OS has privileged control over ‘address translation's
hardware
– Each application allowed access to only own data
– Data is authenticated (i.e. user is allowed to access it)
• What if two applications try to access the same device at the
same time eg printer?
– Fix with mutual exclusion – deadlock!
© DOC, Imperial College, 2006
Lets look at an Operating System at
work
• Julie put some program running on system
• Do ctrl/alt/del
• Start app
• Start another instance of application
© DOC, Imperial College, 2006
Why are OSs fun?
• Make application software commodity
• Abstraction make programming easier
• Challenging - security, performance,
reliability
• Do fancy things with programs
© DOC, Imperial College, 2006
Ubiquitous Computing?
• Involves many disciplines.
• Inspired by the social scientists,
philosophers, and anthropologists
• paradigm shift?
– currently we expect the user to
find ways to use the computer
– however we currently do not
emphasise how the computer can
find its own way to serve the user
• focus on HCI
• focus on security, privacy 
big brother?
© DOC, Imperial College, 2006
Current Technology
Personal digital
assistant (PDA)
Mobile phone / PDA
DoCoMo
video phone
Laptop
Thanks to M. Sloman for slides
Best friend
© DOC, Imperial College, 2006
Wearable
Thanks to M. Sloman for slides
Wearable or
luggable?
LCD
Jacket
Designer
Gear
© DOC, Imperial College, 2006
Intelligent
Environment
• Fridge and cupboards
tracks consumption and
reorder your groceries
• Your car computer
reminds you to pick up
your order on the way
home when you are near
the supermarket.
Thanks to M. Sloman for slides
© DOC, Imperial College, 2006
Intelligent Environment - 2
• Lights, air conditioning, TV automatically switch on and off when you
enter or leave rooms
• Sit on your favourite chair and TV switches on to the program you usually
watch at this time of the day
• Use communicator/pda for phone, remote control, keys
payments, passport, health records, authenticator.
• Route input from ‘virtual’ keyboard to nearest suitable display.
• Automatic detection of new items to control and physical layout in a room
or office, using computer vision.
Thanks to M. Sloman for slides

More Related Content

Similar to Os(vijayanand)

Computer system organization
Computer system organizationComputer system organization
Computer system organization
Syed Zaid Irshad
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
SanthiNivas
 
Application Virtualization, University of New Hampshire
Application Virtualization, University of New HampshireApplication Virtualization, University of New Hampshire
Application Virtualization, University of New Hampshire
Tony Austwick
 
Intro to Computing for National Diploma Students
Intro to Computing for National Diploma StudentsIntro to Computing for National Diploma Students
Intro to Computing for National Diploma Students
Murtala Lawal
 
Introduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxIntroduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptx
ssuserf7df42
 
CLIMB System Introduction Talk - CLIMB Launch
CLIMB System Introduction Talk - CLIMB LaunchCLIMB System Introduction Talk - CLIMB Launch
CLIMB System Introduction Talk - CLIMB Launch
Tom Connor
 
HIS 2015: Prof. Mark Little - Open Source Challenges in the Enterprise
HIS 2015: Prof. Mark Little - Open Source Challenges in the EnterpriseHIS 2015: Prof. Mark Little - Open Source Challenges in the Enterprise
HIS 2015: Prof. Mark Little - Open Source Challenges in the Enterprise
AdaCore
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
NehaTadam
 
Supporting Research through "Desktop as a Service" models of e-infrastructure...
Supporting Research through "Desktop as a Service" models of e-infrastructure...Supporting Research through "Desktop as a Service" models of e-infrastructure...
Supporting Research through "Desktop as a Service" models of e-infrastructure...
David Wallom
 
The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data
The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data
The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data
DataCentred
 
opreting system
opreting systemopreting system
opreting system
opreting systemopreting system
opreting system
opreting systemopreting system
opreting system
opreting systemopreting system
opreting system
opreting systemopreting system
opreting system
opreting systemopreting system
fdocuments.in_unit-2-foc.ppt
fdocuments.in_unit-2-foc.pptfdocuments.in_unit-2-foc.ppt
fdocuments.in_unit-2-foc.ppt
KrishanPalSingh39
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
Prakash Sir
 
os_1.pdf
os_1.pdfos_1.pdf
os_1.pdf
HemantBorse6
 

Similar to Os(vijayanand) (20)

Computer system organization
Computer system organizationComputer system organization
Computer system organization
 
Operating System Unit 1
Operating System Unit 1Operating System Unit 1
Operating System Unit 1
 
Application Virtualization, University of New Hampshire
Application Virtualization, University of New HampshireApplication Virtualization, University of New Hampshire
Application Virtualization, University of New Hampshire
 
Operating systems 101
Operating systems 101Operating systems 101
Operating systems 101
 
Intro to Computing for National Diploma Students
Intro to Computing for National Diploma StudentsIntro to Computing for National Diploma Students
Intro to Computing for National Diploma Students
 
Introduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptxIntroduction & Background(Operating Systems).pptx
Introduction & Background(Operating Systems).pptx
 
CLIMB System Introduction Talk - CLIMB Launch
CLIMB System Introduction Talk - CLIMB LaunchCLIMB System Introduction Talk - CLIMB Launch
CLIMB System Introduction Talk - CLIMB Launch
 
HIS 2015: Prof. Mark Little - Open Source Challenges in the Enterprise
HIS 2015: Prof. Mark Little - Open Source Challenges in the EnterpriseHIS 2015: Prof. Mark Little - Open Source Challenges in the Enterprise
HIS 2015: Prof. Mark Little - Open Source Challenges in the Enterprise
 
Nt introduction(os)
Nt introduction(os)Nt introduction(os)
Nt introduction(os)
 
Supporting Research through "Desktop as a Service" models of e-infrastructure...
Supporting Research through "Desktop as a Service" models of e-infrastructure...Supporting Research through "Desktop as a Service" models of e-infrastructure...
Supporting Research through "Desktop as a Service" models of e-infrastructure...
 
The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data
The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data
The Effectiveness, Efficiency and Legitimacy of Outsourcing Your Data
 
opreting system
opreting systemopreting system
opreting system
 
opreting system
opreting systemopreting system
opreting system
 
opreting system
opreting systemopreting system
opreting system
 
opreting system
opreting systemopreting system
opreting system
 
opreting system
opreting systemopreting system
opreting system
 
opreting system
opreting systemopreting system
opreting system
 
fdocuments.in_unit-2-foc.ppt
fdocuments.in_unit-2-foc.pptfdocuments.in_unit-2-foc.ppt
fdocuments.in_unit-2-foc.ppt
 
Introduction of os and types
Introduction of os and typesIntroduction of os and types
Introduction of os and types
 
os_1.pdf
os_1.pdfos_1.pdf
os_1.pdf
 

Recently uploaded

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
anoopmanoharan2
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
ClaraZara1
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
Kamal Acharya
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
thanhdowork
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 

Recently uploaded (20)

PPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testingPPT on GRP pipes manufacturing and testing
PPT on GRP pipes manufacturing and testing
 
6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)6th International Conference on Machine Learning & Applications (CMLA 2024)
6th International Conference on Machine Learning & Applications (CMLA 2024)
 
Online aptitude test management system project report.pdf
Online aptitude test management system project report.pdfOnline aptitude test management system project report.pdf
Online aptitude test management system project report.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
RAT: Retrieval Augmented Thoughts Elicit Context-Aware Reasoning in Long-Hori...
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 

Os(vijayanand)

  • 1. © DOC, Imperial College, 2006 Operating Systems Concepts An introduction to the software that makes computers usable, ensures that systems can be made secure and provides the environment for software to be a marketable commodity Acknowledgement: Paul Kelly
  • 2. © DOC, Imperial College, 2006 What is an Operating System • The OS is software - it’s a program It “virtualises” your computer • Your computer needs to be virtualised… trust me!! • Because that’s what makes it possible to buy and sell computer programs • And that’s a major economic activity
  • 3. © DOC, Imperial College, 2006 There are lots… • Microsoft: Windows ME, Windows 2000, Windows CE • Linux • BSD (FreeBSD, NetBSD) • Sun: Solaris • IBM: AIX • Compaq: Tru64 Unix, OpenVMS • Hewlett-Packard: HP-UX • Apple: MacOS-8, MacOS-X • Symbian: EPOC • PalmOS • QNX • VXWorks • LynxOS • MVS, AS/400 • Many many more, mostly more-or-less Unix/POSIX compatible eg MESHIX • Literally thousands of variants and research prototypes eg MACH, Plan9, Pebble, Go! • Sun (again): the Java Virtual Machine is it??? JOS?? Various kinds of Unix Designed for handhelds Embedded real-time
  • 4. © DOC, Imperial College, 2006 Opening up the software market • More than 90% of all software products sold are designed for just one virtual machine • This has been quite good for their business... Microsoft Corporation's Revenue $0 $5,000 $10,000 $15,000 $20,000 $25,000 F Y 8 5 F Y 8 6 F Y 8 7 F Y 8 8 F Y 8 9 F Y 9 0 F Y 9 1 F Y 9 2 F Y 9 3 F Y 9 4 F Y 9 5 F Y 9 6 F Y 9 7 F Y 9 8 F Y 9 9 F Y 0 0 Fiscal year (from incorporation) Revenue(millionsofUS$) Source: http://www.microsoft.com/msft/history.htm Seealsohttp://www-cs-students.stanford.edu/~kkoster/microsoft/
  • 5. © DOC, Imperial College, 2006 Overview of Course • What is an OS • Terminology • Kinds of OS • How does the OS work • What principles underpin OS Operation • What does an OS look like ‘under the bonnet’
  • 6. © DOC, Imperial College, 2006 Recommended textbooks Modern Operating Systems. A Tanenbaum Prentice-Hall •Operating Systems (4th edition). William Stallings, Prentice-Hall 2001 •Operating Systems: a modern perspective (2nd edition). Gary Nutt, Addison Wesley, 2000
  • 7. © DOC, Imperial College, 2006 THERE IS NO SPOON • Read books – course built on classic authoritative textbook • Exam designed to test your understanding and ability to apply it to new ideas • Some exam questions will introduce an idea not covered in the course • But will ask you to explore an idea using what you’ve learned • The book might have even covered that!
  • 8. © DOC, Imperial College, 2006 Chapter 1: - Introduction to OS 1945 to 1955 • No operating system • human operators •What did the first operating system look like?
  • 9. © DOC, Imperial College, 2006 1956 to 1965 • Transistors and batch systems , • Clear distinction between designers, builders, operators, programmers, and maintenance personnel, • I/O channel, • Read ahead / spooling, • Interrupts/ exceptions, • Minimal protection, • Libraries / JCL
  • 10. © DOC, Imperial College, 2006 1965 to 1980 • ICs and Multiprogramming, • System 360 and S/370 family of computers, • Spooling (simultaneous peripheral operation on-line), • Time sharing, On-line storage for System programs, • User programs and data, Program libraries, • Virtual memory, • Multiprocessor configurations e.g. MULTICS
  • 11. © DOC, Imperial College, 2006 When people looked like this, we saw the next generation THE SECOND WAVE OF COMPUTING
  • 12. © DOC, Imperial College, 2006 1980-now •Personal computers and workstations •MS-DOS and Unix •Massively parallel systems •Pipelining •Array processing / SIMD •General multiprocessing / MIMD •Symmetric multiprocessing / SMD •Any process and any thread can run on any available processor •Computer networks (communication aspect) -- network operating systems •Distributed computing -- distributed operating systems Cray 2
  • 13. © DOC, Imperial College, 2006 Connection Machine 5
  • 14. © DOC, Imperial College, 2006 What is an OS • A program, C or C++ • Loads and runs other programs • Application programs might wish to: – Draw on the screen – Interact via a keyboard, mouse etc – Access the hard disk (files) – Communicate with other application programs • The OS should provide a consistent way to do this – Works on whatever hardware you have.
  • 15. © DOC, Imperial College, 2006 Virtual or Abstract Machines • Effectively wraps the hardware to provide a ‘virtual’ machine • Consistent interface to devices and services • What are the limits/difficulties?
  • 16. © DOC, Imperial College, 2006 Challenges to the VM approach • Performance – machine too slow to run application, – I want to safely run lots of applications! • Resources - Machine too little memory
  • 17. © DOC, Imperial College, 2006 Overcoming VM challenges • Most OSs solve this problem • Uses virtual memory – paging – Application or program requiring 100MBytes of memory can run on just 10 Mbytes of physical memory using VM – Slowly mind! • What if I want to run more than one program? – Can you read mail and eat? – you have one brain – Processor switch from one process to another – Regularly, use a timer to interrupt the processor – Most do this fairly (according to application needs) • Time-slicing – scheduling and priority
  • 18. © DOC, Imperial College, 2006 Overcoming VM challenges • What if the other programs behave maliciously e.g. try to steal my secrets? – OS has privileged control over ‘address translation's hardware – Each application allowed access to only own data – Data is authenticated (i.e. user is allowed to access it) • What if two applications try to access the same device at the same time eg printer? – Fix with mutual exclusion – deadlock!
  • 19. © DOC, Imperial College, 2006 Lets look at an Operating System at work • Julie put some program running on system • Do ctrl/alt/del • Start app • Start another instance of application
  • 20. © DOC, Imperial College, 2006 Why are OSs fun? • Make application software commodity • Abstraction make programming easier • Challenging - security, performance, reliability • Do fancy things with programs
  • 21. © DOC, Imperial College, 2006 Ubiquitous Computing? • Involves many disciplines. • Inspired by the social scientists, philosophers, and anthropologists • paradigm shift? – currently we expect the user to find ways to use the computer – however we currently do not emphasise how the computer can find its own way to serve the user • focus on HCI • focus on security, privacy  big brother?
  • 22. © DOC, Imperial College, 2006 Current Technology Personal digital assistant (PDA) Mobile phone / PDA DoCoMo video phone Laptop Thanks to M. Sloman for slides Best friend
  • 23. © DOC, Imperial College, 2006 Wearable Thanks to M. Sloman for slides Wearable or luggable? LCD Jacket Designer Gear
  • 24. © DOC, Imperial College, 2006 Intelligent Environment • Fridge and cupboards tracks consumption and reorder your groceries • Your car computer reminds you to pick up your order on the way home when you are near the supermarket. Thanks to M. Sloman for slides
  • 25. © DOC, Imperial College, 2006 Intelligent Environment - 2 • Lights, air conditioning, TV automatically switch on and off when you enter or leave rooms • Sit on your favourite chair and TV switches on to the program you usually watch at this time of the day • Use communicator/pda for phone, remote control, keys payments, passport, health records, authenticator. • Route input from ‘virtual’ keyboard to nearest suitable display. • Automatic detection of new items to control and physical layout in a room or office, using computer vision. Thanks to M. Sloman for slides