Quiz 1 Flashcards

(44 cards)

1
Q

What are the three main purposes of an operating system?

A

1 Execute user programs and make solving user problems easier
2 Make the computer system convenient to use
3 Use the computer hardware in an efficient manner

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

What is the 4 components of a Computer System’s Structure?

A

Hardware, Operating System, Application Programs, Users

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

What are some Roles of the OS?

A

Referee-Allocates resources, Isolates users and apps, communicates between users and apps
Illusionist-Each app seems to have the entire machine to itself

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

What are the main services that the OS provides?

A

Program execution, I/O operations, File Systems, Communication, Resource Allocation, Accounting, Error Detection, Protection and Security

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

What are the different types of User Interfaces an OS would have to deal with?

A

GUI, Touch Screen, Command Line

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

What does the Command Line Interpreter do?

A

Takes in direct key inputs from keyboard and displaces results in a terminal or shell.

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

What does a GUI do?

A

Its a user friendly desktop interface. Modern computer types

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

What are system calls?

A

Programming interfaces to the services provided by the OS.

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

How are system calls typically implemented?

A

Through a table which has each call indexed by number.

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

What are the 3 general methods to pass parameters to the OS?

A

1 Pass the parameters in registers.
2 Parameters stored in a block or table in memory, address of block passed as a parameter in a regiser
3 Parameters pushed onto the stack by the program and popped off by the OS

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

Process Control, File Management, Device Management, Information Maintenance(Date and Time), Communications, Protection

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

What are the services the system provides?

A

File manipulation, Status information, Programming language support, Program loading and execution, Communications, Background Services, Application Programs

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

What is the purpose of System Services?

A

Provide a convenient environment for program development and execution.

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

What is a shell?

A

A job control system
Allows the programmer to create and manage a set of programs to do some task.

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

What are the User goals of an OS?

A

The OS should be 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
16
Q

What are the System goals of an OS?

A

Operating systems should be easy to design, implement and maintain as well as flexible, reliable, error-free and efficient

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

How are OS implements in the modern day?

A

Lowest levels in assembly, main body in C, various systems programs in C, C++ PERL and Python

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

Emulation allows for?

A

OS to run on non-native hardware.

19
Q

What are the various ways to structure an OS?

A

Monolithic-One big program
Microkernels-Very small kernel most processes done in user space
Modular-OS has loadable kernel modules

20
Q

What are the benifits and downsides of MicroKernels?

A

Benefits: Easy to extend, Easy to port, More reliable, More secure
Detriments: Performance overhead of user space to kernel space communication

21
Q

What are the benefits to Modules?

A

Benefit: Save memory, Faster to maintain and debug, Modules are loaded as fast as kernels

22
Q

What is the system structure of Linux?

A

Monolithic plus modular design

23
Q

What is a Process?

A

A program in execution.

24
Q

What are the parts of a process?

A

The program code ie text section, current activity, stack, data section, heap.

25
What is contained in the stack?
Function parameters, return addresses, local variables.
26
What is contained in the data section?
Global variables
27
What is contained in the heap?
Memory dynamically allocated during run time.
28
What does the virtualized processor do?
Give the process the illusion that it monopolizes the system.
29
What does virtual memory do?
Lets the process allocate and manage memory as if it owned all the memory in the system.
30
What are instructions?
The fundamental unit of work.
31
What are the 5 states of a process?
New, Running, Waiting, Ready, and Terminated
32
What does the Process Control Block hold?
Information associated with each process.
33
What selects among available processes for the next execution on a GPU core?
The Process Scheduler
34
What is a context switch?
What occurs when the CPU switches from one process to another.
35
How are processes identified?
With their PID or process identifier
36
What are the two models of Interprocess Communication?
Shared Memory and Message Passing
37
What is shared memory communication?
When a single area of memory is shared among the processes that are communicating.
38
What is the major issue to deal with with shared memory communication?
Synchronizing the user processes with each other.
39
What is the paradigm for cooperating processes?
The Producer-Consumer Model
40
What are the two variations of the Producer-Consumer Problem?
Unbounded-buffer and Bounded-Buffer
41
What are pipes?
Conduits allowing for two processes to communicate
42
What are the two pipes?
Ordinary Pipes, and Named Pipes (Not needed to be accessed with a Parent Child Relationship)
43
What is a socket?
An endpoint for communication.
44
What are stubs?
Client-side proxy for actual procedures on a server