Chapter "2" Flashcards

- Describe the services an operating system - Various ways of structuring an operating system - How operating systems are installed and customized and how they boot

1
Q

What are the operating-system services that are helpful to the user ?

A

1.User interface
2.Program execution
3.I/O operations
4.File-system manipulation
5.Communications
6.Error detection

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

What are the different user interfaces?

A

1.Command-Line Interface (CLI)
2.Batch
3.Graphics
User Interface (GUI)

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

Operating systems provide an environment for ………..
of programs and ……… to programs and users

A

execution, services

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

Another set of OS functions exists for ensuring the
………. operation of the system

A

efficient

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

How does the os ensure the efficient operation of the system itself?

A
  1. Resource allocation
  2. Accounting
  3. Protection and security
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Define accounting?

A

To keep track of which users use how much and
what kinds of computer resources

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

What is the difference between protection and security?

A

Protection: involves ensuring that all access to system resources is
controlled
Security of system from outsiders requires user authentication,
extends to defending external I/O devices from invalid access attempts

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

Define a system call ?

A

A system call is a mechanism that allows a computer program to request a service from the kernel of the operating system it is running on.

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

What are the three methods used to pass parameters to the OS?

A
  1. Simplest: pass the parameters in registers
  2. Parameters stored in a block, or table, in memory,
    and block address passed as a parameter in a register
  3. Parameters pushed, onto the stack by the program
    and popped off the stack by the operating system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

T|F: Block and stack methods limit the number or length of parameters being passed

A

False.

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

What are the types of system calls?

A
  1. Process control
  2. File management
  3. Device management
  4. Information maintenance
  5. Communications
  6. Protection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

System programs provide a convenient environment
for program ………………… and ………………..

A

development ,execution.

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

T|F: All system call are simply user interfaces to system calls

A

False, only some and other considered more complex.

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

What are the categories for system programs?

A
  1. File manipulation and File modification
  2. Status information
  3. Programming language support
  4. Program loading and execution
  5. Communications
  6. Background services
  7. Application programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Create, delete, copy,
rename, print, dump, list, and generally
manipulate files and directories -> these system calls will fall under which category ?

A

File management.

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

 Text editors to create and modify files
 Special commands to search contents of files or
perform transformations of the text ->these system calls will fall under which category ?

A

File modification

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

Compilers,
assemblers, debuggers and interpreters
sometimes provided
->these system calls will fall under which category ?

A

Programming-language support

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

Absolute
loaders, relocatable loaders, linkage editors,
and overlay-loaders, debugging systems for
higher-level and machine language->these system calls will fall under which category ?

A

Program loading and execution-

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

Provide the mechanism for
creating virtual connections among processes,
users, and computer systems ->these system calls will fall under which category ?

A

Communications

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

disk checking, process
scheduling, error logging, printing, Launch at boot time,Run in user context not kernel context ->these system calls will fall under which category ?

A

Background Services

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

What are the Background Services known as?

A

services, subsystems, daemons

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

Launched by command line, mouse click, finger
poke?

A

Application programs

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

What are the system design to the user goals ?

A
  • convenient to use
  • easy to learn
  • reliable
  • safe and fast
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What are the system design to the system goals ?

A
  • Easy to design implement and maintain
  • Flexible and reliable
  • Error-free and efficient
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is the difference between policy and mechanism ?

A

Mechanisms determine how to do something,
policies decide what will be done.

23
Q

What language is used to implement the OS?

A

Mix of languages;
1. Assembly for lowest levels
2. C for main body
3. C, C++. scripting languages (PERL, python) for system programs

24
Q

What is the pro and cone for high-level language ?

A

Pro: easier to port to other hardware
Con: But slower

24
Q

What is Emulation?

A

It can allow an OS to run on non-native hardware.

24
Q

What are the different ways to structure an OS?

A
  • Simple Structure
  • UNIX Structure
  • Layered Approach
  • Microkernel System
    Structure
  • Modules
  • Hybrid Systems
25
Q

What an example of a simple structure ?

A

MS-DOS

26
Q

What is MS-DOS written to provide ?

A

Most functionality in
the least space.

27
Q

T|F: The original UNIX os had limited structuring?

A

True, limited by hardware functionality.

28
Q

What are the two parts that the UNIX consists of?

A
  1. Systems programs
  2. The kernel
29
Q

What is the layered approach?

A

The operating system is
divided into a number of
layers (levels), each built
on top of lower layers.

Where each layer is selected to use functions of only lower-level layers

30
Q

What in the bottom layer ? what in the highest layer?

A
  • Hardware
  • User interface
31
Q

What does the Microkernel System Structure do?

A

Moves as much from the kernel into user space

32
Q

Most modern operating systems implement …………………..

A

loadable kernel modules

32
Q

What are the benefits of microkernel system ?

A
  1. Easier to extend a microkernel
  2. Easier to port the OS to new architectures
  3. More reliable (less code is running in kernel mode)
  4. More secure
33
Q

What are some examples that uses modules structure?

A
  • Linux
  • Solaris
34
Q

How does the modules work ?

A
  • Uses OOP approach
  • Each core component is separate
  • Each talks to the others over known interfaces
  • Each is loadable as needed within the kernel
35
Q

What does hybrid mean ?

A

Hybrid combines multiple approaches to address
performance, security, usability needs

36
Q

How is the Mac OS layered ?

A

It is hybrid, layered, Aqua UI plus Cocoa programming environment.

37
Q

What is Cocoa Touch?

A

Objective-C API for
developing apps

38
Q

What is Media services ?

A

layer for graphics,
audio, video.

39
Q

What is core services?

A

provides cloud
computing, databases.

40
Q

What is android base on ?

A

Linux kernel but modified.

41
Q

In android runtime environment include?

A

Core set of libraries
and Dalvik virtual machine

41
Q

What are the libraries included ?

A
  • webkit
  • SQLite
  • multimedia
42
Q

Define Debugging ?

A

is finding and fixing errors, or bugs

43
Q

What is profiling?

A

Is periodic sampling of instruction pointer
to look for statistical trends

44
Q
A
45
Q
A
45
Q
A
46
Q
A
46
Q
A
47
Q
A
47
Q
A
48
Q
A
49
Q
A
50
Q
A