CIS 390 Midterm Review

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

1/5

flashcard set

Earn XP

Description and Tags

Flashcards covering the concepts of fork() and related topics from a CIS 390 lecture.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

6 Terms

1
New cards

fork()

Creates a copy of the parent process, including code, data, and resources. Returns the child's PID to the parent process.

2
New cards

fork() return value in Child

Returns 0 to the child process.

3
New cards

fork() return value in Parent

Returns the child's process ID (PID) to the parent process.

4
New cards

fork() return value on Failure

Returns a negative number, typically -1, and may also print a failure message to the parent process.

5
New cards

wait() function

Waits for the first child process to finish before the parent process continues execution.

6
New cards

Variables before fork()

Variables are available to both parent and child, but modifications in one process (parent or child) do not affect the other. The reason is data separation each has independent memory space.