four components of a computer system. computer system components users (people, machines, other...

15
Four Components of a Computer System

Upload: valerie-georgia-mcdonald

Post on 12-Jan-2016

229 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

Four Components of a Computer System

Page 2: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

Computer System Components

• Users (people, machines, other computers)• Applications programs – define the ways in which the system

resources are used to solve the computing problems of the users (compilers, database systems, video games, business programs)

• Operating System• Hardware – provides basic computing resources (CPU,

memory, I/O devices)

Page 3: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

What is an Operating System?

• 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

Page 4: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

What is the role of the Operating System?

• Explore the role of the operating system from:– The user’s point of view– The system’s point of view

Page 5: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

User View of a Computer

• Varies according to the interface being used• Most systems designed for single user– OS maximizes the work (or play) user is

performing– OS designed mostly for ease of use, not for

resource utilization

Page 6: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

User View of a Computer

• Some users interface to mainframe or minicomputer– OS is designed to maximize resource use (CPU,

memory, I/O)

Page 7: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

User View of a Computer

• Some users sit at workstations connected to networks of servers– Dedicated and shared resources– OS compromises between individual usability and

resource utilization

Page 8: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

User View of a Computer

• What about handheld systems? (easy of use or resource utilization?)

Page 9: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

System View of a Computer

• OS is program most involved with the hardware

• 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

Page 10: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

What does an Operating System do?

• Silberschatz and Gavin:“An OS is similar to a government”

• Coordinator and Traffic Cop:– Manages all resources– Settles conflicting requests for resources– Prevent errors and improper use of the computer

• Facilitator:– Provides facilities that everyone needs– Standard Libraries, Windowing systems– Make application programming easier, faster, less error-prone

Page 11: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

What if we didn’t have an Operating System?

• Source CodeObject CodeExecutable Code• How do you get object code onto the hardware?• How do you print out the answer?• Ealier, had to Toggle in program in binary and read out answer

from LED’s!

Altair 8080

Page 12: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

What is an Operating System,… Really?

• Most Likely:– Memory Management– I/O Management– CPU Scheduling– Communications? (Does Email belong in OS?)

• What about?– File System?– Multimedia Support?– User Interface?– Internet Browser?

Page 13: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

Defining Operating Systems

• No universally accepted definition• “Everything a vendor ships when you order an

operating system” is good approximation– But varies wildly

• “The one program running at all times on the computer” is the one generally used in this course– This is the kernel– Everything else is either a system program (ships with

the operating system) or an application program

Page 14: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

Operating Systems Definition

• No universally accepted definition• “Everything a vendor ships when you order an

operating system” is good approximation– But varies wildly

• “The one program running at all times on the computer” is the one used in this course– This is the kernel– Everything else is either a system program (ships with

the operating system) or an application program

Page 15: Four Components of a Computer System. Computer System Components Users (people, machines, other computers) Applications programs – define the ways in

Computer Startup and Execution• 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

• Kernel runs, waits for event to occur– Interrupt from either hardware or software

• Hardware sends trigger on bus at any time• Software triggers interrupt by system call• Stops current kernel execution, transfers execution to fixed location

– Interrupt service routine executes and resumes kernel where interrupted– Usually a service routine for each device / function

» Interrupt vector dispatches interrupt to appropriate routine