LQ1 - Operating Systems - Processes

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 64

flashcard set

Earn XP

Description and Tags

65 Terms

1

process

a program in execution

New cards
2

false

true or false: process execution must progress in parallel fashion. No sequential execution of instructions of a single process

New cards
3
  • program code/text section

  • current activity

  • stack

  • data section

  • heap

parts of a process

New cards
4

heap

it contains memory dynamically allocated during run time

New cards
5

stack

contains temporary data, such as function parameters, return addresses, local variables

New cards
6

process control block (PCB) / task control block

information associated with each process

New cards
7
  • process state

  • program counter

  • CPU registers

  • CPU scheduling information

  • memory-management information

  • accounting information

  • i/o status information

enumerate the parts of a process control block

New cards
8

process scheduling

Selects among available processes for next execution on CPU core

New cards
9

ready queue

set of all processes residing in main memory, ready and waiting to execute

New cards
10

wait queues

set of processes waiting for an event

New cards
11

context switch

occurs when the CPU switches from one process to another

New cards
12

true

true or false: When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch

New cards
13

parent, children

____ process create ____ processes, which, in turn create other processes, forming a tree of processes

New cards
14

process identifier (PID)

Process are identified and manage via a ___ ___

New cards
15

fork()

a UNIX system call to create a new process

New cards
16

exec()

a UNIX system call used after a fork() to replace the process’ memory space with a new program

New cards
17

service

Android background processes use ___ to perform task. This can keep running even if background process is suspended.

New cards
18

wait()

a UNIX system call used to wait for the child to terminate

New cards
19

exit()

Process executes last statement and then asks the operating system to delete it using the ___ system call.

New cards
20

abort()

Parent may terminate the execution of children processes using the ___ system call.

New cards
21
  • child has exceeded allocated resources

  • task assigned to child is no longer required

  • the parent is exiting, and the operating systems does not allow a child to continue if its parent terminates

what are the reasons for parents to terminate the execution of children processes?

New cards
22

cascading termination

All children, grandchildren, etc., are terminated.

New cards
23

zombie

If no parent waiting (did not invoke wait()) process is a ___

New cards
24

orphan

If parent terminated without invoking wait(), process is an

New cards
25

browser process

A type of process found in a browser that manages user interface, disk and network I/O

New cards
26

renderer process

A type of process found in a browser that renders web pages, deals with HTML, Javascript. A new renderer created for each website opened

New cards
27

sandbox

restricts disk and network I/O, and minimizes the effect of security exploits

New cards
28

plug-in process

A type of process found in a browser that runs for each type of plug-in

New cards
29

cooperating process

a type of process that can affect or be affected by other processes, including sharing data

New cards
30

interprocess communication (IPC)

Cooperating processes need___ ___

New cards
31
  • shared memory

  • message passing

What are the two models of IPC?

New cards
32

producer, consumer

___ process produces information that is consumed by a ___ process

New cards
33

unbounded-buffer

places no practical limit on the size of the buffer:

  • producer never waits

  • consumer waits if there is no buffer to consume

New cards
34

bounded-buffer

assumes that there is a fixed buffer size

  • producer must wait if all buffers are full

  • consumer waits if there is no buffer to consume

New cards
35

IPC - shared memory

An area of memory shared among the processes that wish to communicate

New cards
36

IPC - message passing

Processes communicate with each other without resorting to shared variables

New cards
37

communication link

If processes P and Q wish to communicate, they need to establish a ___ ___ between them

New cards
38

direct communication

an implementation of a communication link wherein processes must name each other explicitly

New cards
39

indirect communication

an implementation of a communication link wherein messages are directed and received from mailboxes

New cards
40

blocking is considered synchronous, whereas non-blocking is considered asynchronous

What is the difference between blocking and non-blocking in message passing

New cards
41

rendezvous

If both send and receive are blocking, we have a ____

New cards
42

buffering

queue of messages attached to the link

New cards
43

zero capacity

an implementation of buffering wherein no messages are queued on a link. Sender must wait for receiver (rendezvous)

New cards
44

bounded capacity

an implementation of buffering wherein the length of n messages is finite. Sender must wait if link is full.

New cards
45

unbounded capacity

an implementation of buffering wherein the length of n messages is infinite. Sender never waits.

New cards
46

pipes

acts as a conduit that allows two processes to communicate

New cards
47

ordinary pipes

a type of pipe that cannot be accessed from outside the process that created it. Typically, a parent process creates a pipe and uses it to communicate with a child process it created.

New cards
48

named pipes

a type of pipe that can be accessed without a parent-child relationship

New cards
49

ordinary pipes (or anonymous pipes)

a unidirectional pipe where they allow communication in standard producer-consumer style

New cards
50

named pipes

a bidirectional pipe where several processes can use it for communication.

New cards
51

socket

an endpoint for communication, represented as a concatenation of IP addresses and port.

New cards
52

port

a number included at start of message packet to differentiate network services on a host

New cards
53

loopback

a special IP address to refer to system on which process is running

New cards
54

sockets

communication consists between a pair of ____

New cards
55

remote procedure calls (RPC)

abstracts procedure calls between processes on network systems

New cards
56

stubs

client-side proxy for the actual procedure on the server

New cards
57

marshalls

in the context of RPCs, the client-side stub locates the server and ____ the parameters

New cards
58

Microsoft Interface Definition Language (MIDL)

On Windows, stub code compile from specification written in

New cards
59

External Data Representation (XDL)

RPC data representation is handled via ___ ___ ___ format to account for different architectures

New cards
60

rendezvous/matchmaker

OS typically provides a ______ service to connect client and server

New cards
61

the program counter and other registers

the status of the current activity of a process is represented by?

New cards
62
  1. ready

  2. running

  3. waiting

  4. terminated

what are the four general states of a process?

New cards
63

process control block (PCB)

the kernel data structure that represents a process in an operating system

New cards
64

sockets

allow two processes on different machines to communicate over a network.

New cards
65

remote procedure calls (RPC)

They abstract the concept of function calls in such a way that a function can be invoked on another process that may reside on a separate computer.

New cards
robot