Podcast
Questions and Answers
What is the main difference between a program and a process?
What is the main difference between a program and a process?
- A program is a static set of instructions saved on disk, while a process is the instantiation of a program loaded into memory and being executed. (correct)
- A program is the current state of a process, while a process is a dynamic instance of an executing program.
- A program contains the executable code of the program, while a process holds global variables accessible to the entire program.
- A program is the actual execution sequence of a program, while a process is the static code written on disk.
What determines the current state of a process?
What determines the current state of a process?
- The text section containing the executable code of the program.
- The data section holding global variables accessible to the entire program.
- The stack storing temporary data such as function parameters and return addresses.
- The program counter (PC) and the content of various processor registers. (correct)
In what section of a process is the executable code of the program stored?
In what section of a process is the executable code of the program stored?
- Text Section (correct)
- Data Section
- Heap
- Stack
Which section of a process holds global variables accessible to the entire program?
Which section of a process holds global variables accessible to the entire program?
What allows a single program to be run as multiple processes in multi-user systems?
What allows a single program to be run as multiple processes in multi-user systems?
Flashcards are hidden until you start studying