Which of the following functions is used for handling environment variables of a process?

🎲 Try a Random Question  |  Total Questions in Quiz: 35  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Unix Basics Practice Test: Process Control — practice the complete quiz, review flashcards, or try a random question.

The basic unit of execution in a Unix system is a process. A process is an instance of a running program. Each process has its own memory space, its own set of open files, and its own set of environment variables. Processes are created using the fork() system call. The fork() system call creates a new process that is an exact copy of the parent process. The new process has its own memory space, but it shares the parent process's open files and environment variables. Processes can be terminated using the exit() system call. The exit() system call causes the process to terminate and return a... Show more

Which of the following functions is used for handling environment variables of a process?