Processes Flashcards

1
Q

What is the CPU-I/O Burst Cycle

A

Process execution consists of a cycle of CPU execution (CPU executing the program code) and I/O wait (waiting for the result of I/O)

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

What is a charasteric of a CPU Bound Program

A

Program that has long CPU burst and short I/O wait

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

What is the charateristics of a I/O Bound Program

A

Program that has long I/O wait and short CPU burst

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

What is the ready queue

A

Set of all processes residing in main memory that are ready and waiting to execute

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

What is the I/O queue

A

Set of all processes waiting for an I/O device. Each device has its own I/O device queue

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

What does ht eProcess/CPU Scheduler do?

A

Select which process in ready queue need to be executed next by the CPU

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

What are the scheduling criteria?

A

Maximize CPU Utilization, Maximize Throughput, Minimize Turnaround Time, Minimize Waiting Time and Minimize Response time

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

What is CPU Utilization

A

Try to keep the CPU as busy as possible; i.e. executing as many processes as possible

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

What is throughput

A

The number of processes that are completed per time unit; i.e. complete execution of as many processes as possible

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

What is turnaround time?

A

The amount of time used to complete a process. Turnaround time = Execution time + Waiting Time

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

Waht is waiting time?

A

The amount of time a process is waiting in the ready queue

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

What is response time?

A

The amount of time used to output/display the first result

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

What is Multilevel queue Scheduling

A

Partitioning a ready queue into multiple queues. Each queue has its own priority. Foreground processes have higher priority over the background processes

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

What is IPC?

A

Inter-Process Communication. It is a communication among all processes

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

What the the advantages of IPC

A

Information sharing, Computation Speed-up, Modularity and Convenience

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

What are the two models of IPC?

A

Message passing and Shared Model

17
Q

What is message passing?

A

Process A sends/receives messages to/from process B through kernel (system calls). This model is only used for exchanging small data because it is slower, but it is more reliable than the shared model

18
Q

What is the shared memory model?

A

Both Process A and B write/read data on a shared memory. It is faster and more convenient than the message passing. It is used for exchanging larger amount of data

19
Q

In shared memory model what is the consumer?

A

Process that consumes information from the producer

20
Q

In shared memory model what is the producer?

A

Process that produces information that is consumed by a consumer process

21
Q

What is the Queue buffer?

A

Memory uses to temporarily sharing information between processes. It is based on queue concept (first in-first out). There are 2 types of queue buffer: Unbounded buffer and Bounded buffer

22
Q

What is an unbounded buffer?

A

There is no limit on the size of the buffer. Producer can keep producing data and place it on the buffer even when there’s no consumer. This is rarely used! Message passing model is used to inform the consumer when the queue is empty

23
Q

What is a bounded buffer?

A

The buffer has a fixed size. When the buffer is full, the producer cannot place a new data to the buffer. The producer must wait until the queue is not full anymore. Message passing model is used to inform the producer when the queue is full, and to inform the consumer when the queue is empty

24
Q

What is buffer overflow?

A

When a producer tries to place a new data to the bounded buffer which is already full

25
Q

What are the scheduling algorithms?

A
First-Come, First-Served Scheduling
Shortest-Job-First Scheduling
Priority Scheduling
Higher priority process always runs first
Round-robin Scheduling
All take turn based on time
Equal portions of time slices in circular order
Multilevel Queue Scheduling
Multilevel Feedback-Queue Scheduling