Operating Systems - Process Creation and fork() System Call

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards defining key terms, return values, resource sharing modes, and formulas related to process creation and the fork() system call.

Last updated 2:12 PM on 9/8/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards

Process Creation

The process of creating or producing a child process from a parent process using system calls such as fork()fork().

2
New cards

Parent Process

The called process that produces a child process once a fork()fork() system call is successful; a parent process may have multiple child processes.

3
New cards

Child Process

The calling process created by a parent process during process creation.

4
New cards

Resource Sharing in Child Process

The allocation of resources during process creation, where the child process may share all system resources with its parent, share a portion of the parent's resources, or share no common resources at all.

5
New cards

Execution Modes in Process Creation

The execution behavior of created processes, where the parent and child process may execute concurrently or the parent process may wait for the child process to complete.

6
New cards

Zero Return Value of fork()

A return value of 00 from the fork()fork() system call, indicating that a child process is successfully produced.

7
New cards

Positive Return Value of fork()

A positive return value from the fork()fork() system call, indicating that a child process cannot be produced and execution will return back to the parent process.

8
New cards

Negative Return Value of fork()

A negative return value from the fork()fork() system call, indicating that a child process cannot be produced because the process is erroneous or faulty.

9
New cards

Execution of Child Process Diagram

A state flow diagram showing how fork()fork() splits into parent and child branches, where the child executes exec()exec() and exit()exit(), while the parent enters wait()wait() until the child terminates and then resumes execution.

10
New cards

Total Processes Formula (nthn^{\text{th}} fork call)

The expression 2n2^n, representing the total number of processes present in the system after nn successful calls to fork()fork().

11
New cards

Total Processes for n=10n = 10 fork() Calls

The calculation 210=10242^{10} = 1024, which determines the total number of processes created when fork()fork() is called 1010 times.