CSC3B CH 3 - Review Questions

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/28

flashcard set

Earn XP

Description and Tags

Process

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

29 Terms

1
New cards

What are the four components of a process?

  • Text section: program code itself

  • Stack: temporary data (function parameters, return addresses, local variables)

  • Data section: global variables

  • Heap: contains memory dynamically allocated during run-time

2
New cards

Provide at least three possible states a process may be in.

  • New - The process is being created

  • Running - Instructions are being executed.

  • Waiting - The process is waiting for some event to occur (such as an I/O completion or reception of a signal).

  • Ready - The process is waiting to be assigned to a processor.

  • Terminated - The process has finished execution.

3
New cards

What is a Process Control Block (PCB)?

is a data structure used to store many pieces of information associated with a specific process incl. process state, program counter and other details necessary for process management.

4
New cards

What is another term for process?

task/job

5
New cards

True or False? Most operating systems allow a process to have multiple threads.

TRUE, most modern operating systems have extended the process concept to allow a process to have multiple threads

6
New cards

What is the role of the process scheduler?

Process scheduler selects an available process (possibly from a set of several available processes) for program execution on the CPU.

7
New cards

What is the degree of multiprogramming?

The number of processes in memory at the same time.

8
New cards

What is the term that describes saving the state of one process, and restoring the state of another?

Context switch.

9
New cards

What is a process identifier (PID)?

is a unique integer numerical ID assigned by the operating system to each process for identification and management.

10
New cards

What system call creates a process on UNIX systems?

the fork() system call.

11
New cards

What system call creates a process on Windows systems?

Processes are created in the Windows API using the CreateProcess() function

12
New cards

What system call terminates a process on UNIX systems?

the exit() system call terminates a process.

13
New cards

What is the name of the process that UNIX and Linux systems assign as the new parent of orphan processes?

init process

14
New cards

What are the two fundamental models of interprocess communication?

shared memory and message passing.

15
New cards

What are the two system calls used with message-passing systems?

  1. send(message)

  2. receive(message)

16
New cards

True or False? Message passing is typically faster than shared memory

17
New cards

How must shared memory behave for a rendezvous to occur?

18
New cards
19
New cards
20
New cards
21
New cards
22
New cards
23
New cards
24
New cards
25
New cards
26
New cards
27
New cards
28
New cards
29
New cards