Multiple choice technology programming languages

The brk() system call is used for the following process management

  1. To bias the existing priority of a process

  2. To get parent process identifier

  3. To increase/decrease the data segment size of a process

  4. To create a new process

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The brk() system call changes the data segment limit (the program break), allowing a process to increase or decrease its data segment size for dynamic memory allocation. Modifying process priority is done via nice(), creating a process uses fork(), and retrieving parent PID utilizes getppid().