Operating Systems Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is an operating system?

A

An operating system is a program that manages the computer hardware. It also provides a basis for application programs and acts as an intermediary between the computer user and the computer hardware.

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

What are the 4 components of a computer system?

A

The 4 components are the hardware, the operating system, the application programs, and the users.

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

What is the initial program that a computer runs?

A

The bootstrap program

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

Why are static programs stored in read-only memory?

A

Because read-only memory cannot be changed.

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

Why aren’t programs and data aren’t stored in main memory?

A

Because main memory is too small to store all needed programs and data permanently and because main memory is volatile storage (it will lose all its contents when power is turned off).

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

What is the storage device hierarchy?

A

registers

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

What are the 3 main advantages of multiprocessor systems?

A

Increased throughput, economy of scale, and increased reliability.

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

What is asymmetric multiprocessing?

A

Asymmetric multiprocessing is when a processor is assigned a separate task.

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

What is symmetric multiprocessing?

A

Symmetric multiprocessing is when all processors perform the tasks within the operating system.

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

What are blade servers?

A

When multiple processor boards, I/O boards, and networking boards are placed in the same chassis.

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

Name the 6 types of system calls.

A

1) process control, 2) file manipulation, 3) device manipulation, 4) information maintenance, 5) communications, and 6) protection

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

What is a process?

A

A process is a program in execution.

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

Name the 5 states a process can be in.

A
New = the process is being created. 
Running = instructions are being executed. 
Waiting = the process is waiting for some event to occur (like a I/O completion). 
Ready = the process is waiting to be assigned to a processor. 
Terminated = the process has finished execution.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What kind of information does the process control block contain?

A

The process control block contains information such as process state, program counter, CPU registers, CPU-scheduling info, memory management info, accounting info, and I/O status info.

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

What does the process scheduler do?

A

The process scheduler selects an available process (possibly from a set of available processes) for program execution on the CPU.

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

What is the difference between the long-term scheduler and the short-term scheduler?

A

The long-term scheduler (or the job scheduler) selects a process from a mass-storage device and loads them into memory for execution.

The short-term scheduler (CPU scheduler) selects from among the processes that are ready to execute and allocates the CPU to one of them.

17
Q

What is the difference between an I/O-bound process and a CPU-bound process?

A

An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations.

A CPU-bound process is a process that generates I/O requests infrequently, using more of its time doing computations.

18
Q

What is a medium-term scheduler?

A

A medium-term scheduler is an intermediate type of scheduler that removes a process from memory and (and from active contention for the CPU), reducing the degree of multiprogramming.

19
Q

What are the 2 fundamental models of interprocess communication (IPC)?

A

The 2 fundamental models of interprocess communication are 1) shared memory and 2) message passing.

20
Q

What are the four main benefits of multithreaded programming?

A

The four main benefits are :
1) responsiveness = allows a programming to continue running even if part of it is blocked or performing a lengthy operation.

2) resource sharing = separate processes share resources through shared memory and message passing but threads share memory and the resources of the process by default.
3) economy = since threads share memory and resources by default there is no reason to allocate these things which can be costly.
4) scalability = multithreaded processes can run in tandem with a multiprocessor architecture which increases parallelism.

21
Q

Name five challenges to programming for multicore systems.

A

1) dividing activities = examining applications to find areas that can be divided into separate, concurrent tasks
2) balance = how to ensure that the divided tasks perform equal work of equal value.
3) data splitting = finding out how to split the data being accessed and manipulated amongst the divided tasks.
4) data dependency = finding out if any of the data being accessed or manipulated by a task depends on other data
5) testing and debugging = finding out how to test all execution paths for the multiple cores.