Test 1 Flashcards

1
Q

Operating System

A

software that runs on the bare hardware of a computer and provides essential support for users to develop and use applications in the most efficient and safe manner

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

Multiprogramming

A

a technique that keeps several programs to maximize the use of the CPU and other resources.

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

Time Sharing ( Multitasking )

A

an extension of multiprogramming where the CPU is switched periodically among all active computation to guarantee acceptable response time to each user

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

Is multiprogramming without interrupts?

A

Multiprogramming does not require interrupts. A context switch happens whenever a computation terminates or blocks to wait for I/O. The termination of an I/O operation can be detected periodically checking the device status.

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

Is time-sharing possible without interrupts?

A

Time-sharing requires a periodic interrupt to prevent long-running computations from monopolizing the CPU and thus delaying other computations for unpredictable amounts of time.

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

What do multiprogramming and time-sharing have in common?
What are the differences between the two?

A

Multiprogramming allows multiple programs to be active in memory simutaneously. While one is waiting for I/O completion or some other event, another can run on the CPU. The main objective is to increase CPU and device utilization.

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

Kernel

A

an os is the minimal set of functions necessary to manage the system resources safely and efficiently.

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

Privileged Instruction

A

performs critical operations that access I/O devices and the CPU’s status and control registers. Thus only the OS Kernel is allowed to execute privileged instructions

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

Kernel Mode

A

The CPU state where both privilege and non-privilege instruction may be used

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

User Mode

A

the CPU state where non-privilege instructions may be used. Any attempt to execute a privilege instruction in user mode automatically transfer control to the Kernel

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

OS Shell

A

a command interpreter that accepts and interprets textual commands issued by the user

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

Interrupt

A

an event that diverts the current execution of a program to a predefined location in the kernel in other to respond to an event. An interrupt is triggered by a hardware signal sent to the cpu from an external device

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

Most Common interrupts

A

Signal to O/S the completion of an I/O operation. The interrupt is generated by the I/O device.
Implement time-sharing by periodically switching the CPU among multiple concurrent computations. THe interrupt generated by a countdown timer

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

Trap

A

is an interrupt triggered by the currently executing instruction

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

Interrupt handler

A

is kernel function invoked whenever an interrupt occurs, that determines that cause of the interrupt and invokes the appropriate kernel function to provide the response

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

Process

A

is an instance of a program being executed by an O/S

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

Process Control Block (PCB)

A

a data structure that holds info for a process, including the current instruction address, the execution stack the set of resources used by the process, and the program being executed.

18
Q

Context Switch

A

is the transfer of control from one process to another

19
Q

New -> ready -> suspend -> blocked -> suspend

A

invalid process that went from ready to suspend must return rather than blocked

20
Q

suspend -> blocked -> suspend -> clocked -> ready -> running

A

a suspend process goes back to a blocked state. Next, the process may be suspended again and later return back to the blocked state. When the resource becomes available, the process transition to ready. Finally from ready the process may go into runnning

21
Q

Multiprogramming generally improves CPU utilization

21
Q

Multiprogramming generally improves CPU utilization and throughput

22
Q

The main objective of time-sharing is to improve resource utilization

23
Q

Multiprogramming and time-sharing are not used togheter

24
The use of time-sharing will
guarantee a reasonable response to each computation
25
Kernel Functions may be invoked by
any program
26
Privilege instructions may be executed by
only the kernel
27
An application that needs to access an I/O device could not be written without
kernel functions
28
The kernel can execute ____instructions
Both privilege and non privelge
29
A system call is a
library function
30
A supervisor call is a
privilege instruction
31
A supervisor call can be executed
by any program
32
Changing the mode bit of the CPU _____ can only be done by privileged instruction
from user mode to kernel mode
33
An OS uses PCB to represent a process.
True
34
The PCB is created by the process when execution start
FALSE
35
The PCB becomes part of the program being executed by a process
False
36
Two processes can be executing the same program
True
37
The transition ( ready -> running ) of a process p is called
the OS
38
The transition (running -> blocked) of a process p is caused by
the process p itself
39
The transition (running -> ready) of a process p is caused
the OS
40
The transition (blocked -> ready) of process p is caused by
some other process