Quiz 1 Flashcards

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
Q

What is contained in the stack?

A

Function parameters, return addresses, local variables.

26
Q

What is contained in the data section?

A

Global variables

27
Q

What is contained in the heap?

A

Memory dynamically allocated during run time.

28
Q

What does the virtualized processor do?

A

Give the process the illusion that it monopolizes the system.

29
Q

What does virtual memory do?

A

Lets the process allocate and manage memory as if it owned all the memory in the system.

30
Q

What are instructions?

A

The fundamental unit of work.

31
Q

What are the 5 states of a process?

A

New, Running, Waiting, Ready, and Terminated

32
Q

What does the Process Control Block hold?

A

Information associated with each process.

33
Q

What selects among available processes for the next execution on a GPU core?

A

The Process Scheduler

34
Q

What is a context switch?

A

What occurs when the CPU switches from one process to another.

35
Q

How are processes identified?

A

With their PID or process identifier

36
Q

What are the two models of Interprocess Communication?

A

Shared Memory and Message Passing

37
Q

What is shared memory communication?

A

When a single area of memory is shared among the processes that are communicating.

38
Q

What is the major issue to deal with with shared memory communication?

A

Synchronizing the user processes with each other.

39
Q

What is the paradigm for cooperating processes?

A

The Producer-Consumer Model

40
Q

What are the two variations of the Producer-Consumer Problem?

A

Unbounded-buffer and Bounded-Buffer

41
Q

What are pipes?

A

Conduits allowing for two processes to communicate

42
Q

What are the two pipes?

A

Ordinary Pipes, and Named Pipes (Not needed to be accessed with a Parent Child Relationship)

43
Q

What is a socket?

A

An endpoint for communication.

44
Q

What are stubs?

A

Client-side proxy for actual procedures on a server