Chapter 3 (Quiz 3 Portion) Flashcards

Process Concept, Process Scheduling, Operations on Processes, Inter-process Communication, Examples of IPC Systems, Communication in Client-Server Systems.

1
Q

What is a Process?

A

A program in execution.

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

A Process execution must progress in what fashion?

A

A sequential fashion.

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

What is a Stack?

A

Containing temporary data, Functions parameter, return addresses & local variables.

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

What is a Heap?

A

Containing memory dynamically allocated during run time.

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

A Program is a passive entity. (True or False)

A

True.

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

A Process is a active entity. (True or False)

A

True.

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

When does a program become a process?

A

When an executable file is loaded into memory.

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

One program can be several processes. (True or False)

A

True.

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

What are the 5 process states?

A

1- New.
2- Running.
3- Waiting.
4- Ready.
5- Terminated.

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

What is the New process state?

A

The process is being created.

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

What is the Running process state?

A

Instructions are being executed.

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

What is the Waiting process state?

A

The process is waiting for some event to occur.

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

What is the Ready process state?

A

The process is waiting to be assigned to a processor.

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

What is the Terminated process state?

A

The process has finished execution.

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

What is Process Control Block?

A

Information for each process.

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

What is another name for Process Control Block?

A

Task Control Block.

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

What is a Process Scheduler?

A

selects among available processes for next execution on CPU.

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

What is a Short-Term Scheduler?

A

Also known as CPU Scheduler, selects which process should be executed next and allocates CPU.

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

What is a Long-Term scheduler?

A

Also known as Job scheduler, selects which processes should be brought into the ready queue.

20
Q

What is a Medium-Term scheduler?

A

Can be added if degree of multiple programming needs to decrease.

21
Q

What is Swapping?

A

Remove process from memory, store on disk, bring back in from disk to continue execution.

22
Q

What are the IOS (IPhone) process?

A

1- Single foreground process for user interface.
2- Multiple background processes for memory and running.

23
Q

What is the Android (Samsung) process?

A

Runs foreground and background, with fewer limits.

24
Q

What are the Resource sharing options for Process Creation?

A

1- Parent and children share all resources.
2- Children share subset of parent’s resources.
3- Parent and child share no resources.

25
What are the Execution options for Process Creation?
1- Parent and children execute concurrently. 2- Parent waits until children terminate.
26
What is Process Termination?
Process executes last statement and then asks the operating system to delete it using the exit() system call.
27
What are the 3 processes for Google Chrome Browser?
1- Browser. 2- Renderer. 3- Plug-in.
28
What is "Independent process" ?
process cannot affect or be affected by the execution of another process.
29
What is "Cooperating process" ?
process can affect or be affected by the execution of another process.
30
What are the Reasons or Advantages of cooperation process?
1- Information sharing. 2- Speed-up. 3- Modularity. 4- Convenience.
31
What is needed for implementation of a physical communication link?
1- Shared memory. 2- Hardware bus. 3- Network.
32
What is needed for implementation of a logical communication link?
1- Direct or Indirect. 2- Synchronous or Asynchronous. 3- Automatic or explicit buffering.
33
What happens to the following in terms of "Direct Communication" ? Send (A, message) : _________________________. Receive (B, message) : _________________________.
Send (A, message) : send a message to process A. Receive (B, message) : receive a message from process B.
34
What are the properties of "Direct" communication links?
1- Links are established automatically. 2- A link is associated with exactly one pair of communicating processes. 3- Between each pair there exists exactly one link. 4- The link may be unidirectional, but is usually bi-directional.
35
What happens to the following in terms of "Indirect Communication" ? Send (C, message) : _________________________. Receive (C, message) : _________________________.
Send (C, message) : send a message to mailbox C. Receive (C, message) : receive a message from mailbox C.
36
What are the properties of "Indirect" communication links?
1- Link established only if processes share a common mailbox. 2- A link may be associated with many processes. 3- Each pair of processes may share several communication links. 4- Link may be unidirectional or bi-directional.
37
What is "Blocking" considered?
Its considered Synchronous.
38
What happens in "Blocking send"?
The sender is blocked until the message is received.
39
What happens in "Blocking receive"?
The receiver is blocked until a message is available.
40
What is "Non-blocking" considered?
Its considered Asynchronous.
41
What happens in "Non-blocking send"?
The sender sends the message and continue.
42
What happens in "Non-blocking receive"?
The receiver receives: - A valid message or Null message.
43
What are the communications in Client-Server Systems?
1- Sockets. 2- Remote Procedure Calls. 2- Pipes. 4- Remote Method Invocation (Java).
44
What is a "Socket"?
An endpoint for communication.
45
What are "Pipes"?
Acts as a channel allowing two processes to communicate.