Question 11
EasyWhat is a process ID (PID)?
- A.
The priority of the user
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
What is a process ID (PID)?
The priority of the user
The size of a process
The password of a process
A unique number the OS gives to each process
Sign up free to see the answer and a step-by-step explanation.
Why does a word processor benefit from using several threads?
Threads make the file smaller
Threads remove the need for memory
One thread can respond to typing while another checks spelling in the background
Threads let the program run without the OS
Sign up free to see the answer and a step-by-step explanation.
What is the main cost of a context switch?
The process must restart from the beginning
Extra electricity for the disk
Time spent saving and loading process state, during which no useful work is done
Loss of the process's files
Sign up free to see the answer and a step-by-step explanation.
What is a parent process?
A process that creates another process
A process that has stopped
The first process ever created
A process with the highest priority
Sign up free to see the answer and a step-by-step explanation.
What is a daemon process?
A background process that runs without a user interface, often providing a service
A process that only runs at night
A process that has crashed
A virus
Sign up free to see the answer and a step-by-step explanation.
What does the terminated (exit) state of a process mean?
The process is using the CPU
The process is waiting for input
The process has finished executing
The process is being created
Sign up free to see the answer and a step-by-step explanation.
Which part of a process's memory holds local variables and function-call information?
The stack
The text (code) section
The heap
The data section
Sign up free to see the answer and a step-by-step explanation.
Which part of a process's memory is used for memory allocated at run time, for example with malloc or new?
The registers
The heap
The text section
The stack
Sign up free to see the answer and a step-by-step explanation.
What does the text section of a process contain?
The program's executable instructions
Temporary local variables
Messages from other processes
Files opened by the process
Sign up free to see the answer and a step-by-step explanation.
How do user-level threads differ from kernel-level threads?
Kernel threads can only be used by the administrator
There is no difference
User-level threads are faster CPUs
User-level threads are managed by a library without the kernel's knowledge; kernel threads are managed by the OS
Sign up free to see the answer and a step-by-step explanation.