Chapter 2 Flashcards

(70 cards)

1
Q

What is the purpose of Os systems?

A

make programming easier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

describe UI

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

describe execution

A

load program to memory, run program, and execution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

describe i/o operations

A

for efficiency and protection, users usually cannot control i/o devices directly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

describe file-system manipulation

A

read/write/create/delete files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

describe communications

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

describe error detection

A

errors may occur in CPU, memory hardware, i/o devices, and user program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

describe resource allocation

A

resources need to be allocated for multiple jobs/users running concurrently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

describe accounting

A

for statistics or billing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

describe protection and security

A

concurrent processes could cause interference so protection and security is useful and necessary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

2 fundamental approaches for users to interface with OS

A
  1. command-line interface allows users to directly enter command to be performed
  2. uses a GUI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

define shells

A

interpreters with systems of multiple command interpreters to choose from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

main function of command interpreter

A

get and execute next user-specified command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

2 general ways of implementation of command interpreters

A
  1. command interpreter contains code to execute the command

2. uses command to identify a file to be loaded into memory and executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

define graphical user interface

A

interpreter that uses a mouse-based window and menu system: desktop
gestures on the touch screen on the ipad

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

a benefit of command line interfaces

A

it makes repetitive tasks easier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

describe system calls

A

they provide an interface to the services made available by an OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

define system-call interface

A

interprets function calls in the API and invokes the necessary system calls within the OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

3 general methods to pass parameters to OS

A
  1. pass parameters in registers
  2. store parameters in block/table/memory and then pass its address
  3. parameters placed/pushed onto stack and popped off the stack by OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

6 major categories of system calls

A
  1. process control
  2. file manipulation
  3. device manipulation
  4. information maintenance
  5. communications
  6. protection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

define debugger

A

system program designed to aid the programmer in finding and correcting errors to determine problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

steps of process control

A
  1. OS transfers control to invoking command interpreter
  2. command interpreter reads next command
  3. different systems continue differently
    - ensure integrity of shared data, there is a system call allowing a process to lock shared data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

describe interactive system

A

assumed user will issue an appropriate command to respond to any error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

describe batch system

A

command interpreter terminates entire job and moves on to next job

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
an example of single-tasking system
MS-DOS
26
an example of multi-tasking system
FreeBSD
27
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
28
define FreeBSD
accepts commands and executes programs that the user requests, multi-tasking of loading and running
29
define single step
trap is executed by CPU after every instruction; microprocessors provide this CPU mode
30
2 common models of interprocess communication
1. the messaging model | 2. shared-memory model
31
define messaging model
communication process exchange messages with on another to transfer information
32
define host name
name of computer in a network, usually has a network identifier; IP address
33
define process name
name of process which is translated into an identifier
34
define daemons
system programs, special-purpose, server
35
define shared-memory model
use system calls to create and gain access to regions of memory owned by other processes
36
define protection
provides a mechanism for controlling access to the resources provided by a computer system
37
list computer hierarchy from least to greatest
hardware --> OS --> system programs --> application programs
38
define system programs
system utilities; provide a convenient environment for program development and execution
39
define file management
programs create/copy/delete/receive and manipulate files and directories
40
define status information
use a registry which stores/receive configuration information
41
define file modification
there are special commands to search and modify files
42
define programming-language support
compilers, assemblers, debuggers, and interpreters
43
define program loading/execution
must be loaded into memory to be executed
44
define communications
creating virtual connections among processes, users, and computer systems
45
define background services
services, subsystems, or daemons
46
define mechanisms
determine HOW to do something
47
define policies
determine what will be done
48
why are policies important
for all resource allocation
49
what does the kernel do through system calls
- provides the file system - cpu scheduling - memory management - other OS functions
50
what is the bottom layer of OS
hardware
51
what is the highest layer of OS
user interface
52
what are problems with layered approach of OS
less efficient, hard to define the various layers
53
define MACH
operating system that modularized the kernel using the microkernel approach
54
name a benefit of the microkernel approach
easier to port from one hardware design to another
55
define loadable kernel modules
kernel to provide core services while other services are implemented dynamically, as the kernel is running, more flexible than a layered approach, more efficient
56
7 types of loadable kernel modules
1. scheduling classes 2. file systems 3. loadable system calls 4. executable formats 5. stream modules 6. miscellaneous 7. device and bus drivers
57
define kernel extensions
I/O kit for development of device drivers and dynamically loadable modules
58
define iOS
closed-sourced, structured on MAC OS X but does not directly run MAC OS X applications, used for mobile devices, such as touch screens
59
define android
open-source, layered
60
define core dump
capture of the memory of the process
61
define crash
failure in kernel
62
define crash dump
where memory of log file is saved to
63
define trace listings
provide traces of all 'significant' events where errors are tracked
64
define Dtrace
facility that dynamically adds probes to a running, both in user process and in the kernel
65
define profiling
periodically sampling the instruction pointer to determine which code is being executed shows statistical trends but not individual activities
66
define system generation (SYSGEN)
process for specific computer
67
define booting system
starting computer by loading the kernel
68
define bootstrap program or bootstrap loader
locates the kernel, loads to main memory, starts its execution
69
define GRUB
open-source bootstrap program for LINUX systems
70
define boot disk or system disk
disk with partition