Process concept Flashcards

Fundamentals about processes and IPC

1
Q

Term

A

Definition

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

Signal

A

A software interrupt sent to a process to notify it of an event.

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

Predefined signals

A

Standard signals defined by the operating system for process communication and control.

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

Signal sets

A

A collection of signals that can be manipulated as a group.

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

Exceptions

A

Unexpected or erroneous conditions detected during program execution.

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

File descriptors

A

Identifiers used by the operating system to access files and I/O resources.

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

Process

A

An instance of a program in execution, including its resources and execution context.

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

Data of a process

A

The global variables and dynamically allocated memory used by a process.

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

Heap of a process

A

A dynamically allocated memory region managed at runtime.

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

Stack of a process

A

A memory segment storing function calls, local variables, and return addresses.

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

Text of a process

A

The code segment containing the executable instructions of a process.

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

Executable file

A

A file that contains machine code and can be executed by the operating system.

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

Program counter

A

A CPU register that holds the address of the next instruction to execute.

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

Process control block

A

A data structure maintained by the OS containing process-related information.

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

Swapping

A

A memory management technique that moves processes between RAM and disk storage.

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

Context of a process

A

The current state of a process, including registers, memory, and execution status.

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

Parent process

A

A process that creates and manages child processes.

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

Child process

A

A new process spawned by a parent process.

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

Orphan process

A

A process whose parent has terminated, leaving it managed by the OS.

20
Q

Cascading termination

A

A situation where a parent’s termination forces the termination of its child processes.

21
Q

Independent process

A

A process that does not share resources or data with other processes.

22
Q

Cooperating process

A

A process that interacts and shares resources with other processes.

23
Q

Message passing IPC

A

A form of inter-process communication (IPC) using messages for data exchange.

24
Q

Shared memory IPC

A

A form of IPC where processes communicate by sharing a memory segment.

25
Q

Producer process

A

A process that generates and sends data to be consumed by another process.

26
Q

Consumer process

A

A process that receives and processes data produced by another process.

27
Q

Buffer in shared memory IPC

A

A memory region used for temporary data storage between processes.

28
Q

Unbounded buffer

A

A buffer with no size limit, allowing indefinite data storage.

29
Q

Bounded buffer

A

A buffer with a fixed size, restricting the amount of stored data.

30
Q

Direct communication

A

A method where processes explicitly reference each other for communication.

31
Q

Indirect communication

A

A method where processes communicate via an intermediary, such as a mailbox.

32
Q

Hard coding techniques IPC

A

Fixed, non-configurable methods for inter-process communication.

33
Q

Blocking message passing

A

A synchronization method where a sender or receiver waits until a message is delivered.

34
Q

Non-blocking message passing

A

A method where message sending or receiving occurs asynchronously.

35
Q

Rendezvous in message passing IPC

A

A synchronization mechanism ensuring both sender and receiver are ready before communication.

36
Q

Buffering in message passing

A

A technique where messages are stored temporarily before being processed.

37
Q

Zero capacity buffer

A

A buffer that does not store messages, requiring sender and receiver to synchronize immediately.

38
Q

Sockets

A

Endpoints for communication between processes over a network.

39
Q

Connection-oriented sockets

A

Sockets that establish a reliable connection before data transfer (e.g., TCP).

40
Q

Connectionless socket

A

Sockets that send and receive data without establishing a persistent connection (e.g., UDP).

41
Q

Stub

A

A placeholder function or code used to represent a remote procedure in RPC.

42
Q

Marshal parameter

A

The process of encoding and packaging data for transmission in remote procedure calls.

43
Q

Matchmaker daemon

A

A service that helps clients locate and connect to servers in distributed systems.

44
Q

Pipe

A

A unidirectional communication channel for data transfer between processes.

45
Q

Ordinary pipe

A

A pipe that facilitates communication between related processes (parent-child).

46
Q

Named pipe

A

A pipe with a specific name that allows communication between unrelated processes.