Chapter 2 Flashcards
What is the purpose of Os systems?
make programming easier
describe UI
- command line interface (CLI) uses text commands and methods for entering
- batch interface uses commands to commands are entered into files which are executed
- graphical user interface uses a window system with a pointing device to direct i/o, choose from menus, make selections, and a keyboard to enter text
describe execution
load program to memory, run program, and execution
describe i/o operations
for efficiency and protection, users usually cannot control i/o devices directly
describe file-system manipulation
read/write/create/delete files
describe communications
implemented via shared memory; 2+ processes read and write to a shared section of memory, or message passing, in which packets of info in predefined formats are moved between processes by the OS
describe error detection
errors may occur in CPU, memory hardware, i/o devices, and user program
describe resource allocation
resources need to be allocated for multiple jobs/users running concurrently
describe accounting
for statistics or billing
describe protection and security
concurrent processes could cause interference so protection and security is useful and necessary
2 fundamental approaches for users to interface with OS
- command-line interface allows users to directly enter command to be performed
- uses a GUI
define shells
interpreters with systems of multiple command interpreters to choose from
main function of command interpreter
get and execute next user-specified command
2 general ways of implementation of command interpreters
- command interpreter contains code to execute the command
2. uses command to identify a file to be loaded into memory and executed
define graphical user interface
interpreter that uses a mouse-based window and menu system: desktop
gestures on the touch screen on the ipad
a benefit of command line interfaces
it makes repetitive tasks easier
describe system calls
they provide an interface to the services made available by an OS
define system-call interface
interprets function calls in the API and invokes the necessary system calls within the OS
3 general methods to pass parameters to OS
- pass parameters in registers
- store parameters in block/table/memory and then pass its address
- parameters placed/pushed onto stack and popped off the stack by OS
6 major categories of system calls
- process control
- file manipulation
- device manipulation
- information maintenance
- communications
- protection
define debugger
system program designed to aid the programmer in finding and correcting errors to determine problem
steps of process control
- OS transfers control to invoking command interpreter
- command interpreter reads next command
- different systems continue differently
- ensure integrity of shared data, there is a system call allowing a process to lock shared data
describe interactive system
assumed user will issue an appropriate command to respond to any error
describe batch system
command interpreter terminates entire job and moves on to next job
an example of single-tasking system
MS-DOS
an example of multi-tasking system
FreeBSD
MS-DOS definition and steps
has a command interpreter that is invoked when computer has started, doesn’t create a new process, loads program into memory, sets instructions pointer to first instructions, runs, error causes trap or program executes system call to terminate (error is saved), reloads rest of command interpreter from disk
define FreeBSD
accepts commands and executes programs that the user requests, multi-tasking of loading and running