Chapter 9 Flashcards
Operating System Support
Define
Purpose of Operating System
To mask the details of the hardware from the programmer and provide the programmer with a convenient interface for using the system
List
Services OS provides
Program creation
Program execution
Access to I/O devices
Controlled access to files
System access
Error detection and response
Accounting
List
Key interfaces in a typical computer system
Instruction set architecture (ISA)
Application binary interface (ABI)
Application programming interface (API)
Define
Instruction set architecture
Defines the machine language instructions that a computer can follow.
Boundary between hardware and software.
Define
Application binary interface
Defines a standard for binary portability across programs.
Defines the system call interface to the operating system and the hardware resources and services available in a system through the user ISA
Define
Application programming interface
Gives a program access to the hardware resources and services available in a system through the user ISA supplemented with high-level language (HLL) library calls.
Using an API enables applicatoin software to be ported easily to other systems that support the same API
Describe
How the OS is unusual as a control mechanism
It functions as ordinary computer software - is a program executed by the processor.
OS frequently relinquishes control and must depend on the processor to allow it to regain control.
List
Types of Operating systems
Interactive system
Batch system
Define
Interactive system
OS type
The user/programmer interacts directly with the computer to request the execution of a job or to perform a transaction.
User may, depending on the nature of the application, communicate with the computer during the execution of the job
Define
Batch system
OS type
Opposite of interactive. The user’s program is batched together with programs from other users and submitted by a computer operator. After the program is completed results are printed out for the user.
Describe
Batch OS from view of processor
Processor executes instructions from the portion of main memory containing the monitor. These instructions are in the job control language (JCL). The monitor handles setup and scheduling
monitor = batch OS
List
Desirable hardware features
Memory protection
Privileged instructions
Timer
Interrupts
Define
Memory protection
User program must not alter the memory area containing the monitor.
The process hardware should detect an error and transfer control to the monitor
The monitor aborts the job, prints an error message, and loads the next job
Define
Privledged instructions
Can only be executed by the monitor
If the processor encounters such an instruction while executing a user program, and error interrupt occurs.
I/O instructions are privileged so the monitor retains control of all I/O devices
Define
Batch multiprogramming vs Time Sharing
BM: maximizes processor use. JCL commands provided with the job.
Time Share: minimizes response time. Commands entered at the terminal.