CSC 415 Operating System Principles Chapter 3
A new browser process is created by the Chrome browser for every new website that is visited. Select one: True False
False
Shared memory is a more appropriate IPC mechanism than message passing for distributed systems. Select one: True False
False
Child processes inherit UNIX ordinary pipes from their parent process because: Select one: a. A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents. b. The STARTUPINFO structure establishes this sharing. c. The pipe is part of the code and children inherit code from their parents. d. All IPC facilities are shared between the parent and child processes.
a. A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.
Which of the following selects from among the processes that are in the ready queue to execute and allocate the CPU to one of them? Select one: a. CPU scheduler b. swapping c. job scheduler d. context switch
a. CPU scheduler
The difference between a program and a process is that a program is an active entity while a process is a passive entity. Select one: a. False b. True
a. False
All processes in UNIX first translate to a zombie process upon termination. Select one: a. True b. False
a. True
Background processes are not apparent to users. Select one: a. True b. False
a. True
Which of the following cases could force a process removed from the CPU? Select one: a. all of the other answers b. fork a child c. interrupt or time slice expired d. I/O request
a. all of the other answers
The list of processes waiting for a particular I/O device is called a(n) ____. Select one: a. device queue b. standby queue c. interrupt queue d. ready queue
a. device queue
Which of the following data structure is used to manage the processes in Linux? Select one: a. linked list b. stack c. hash map d. tree
a. linked list
Which of the following process state will be switched from "running" state when an interrupt occurs? Select one: a. ready b. waiting c. terminated d. new
a. ready
The ____ of a process contains temporary data such as function parameters, return addresses, and local variables. Select one: a. stack b. text section c. program counter d. data section
a. stack
When a child process is created, which of the following is a possibility in terms of the execution or address space of the child process? Select one: a. The child is a duplicate of the parent. b. All of the other answers c. The child process runs concurrently with the parent. d. The child process has a new program loaded into it.
b. All of the other answers
A process may transition to the Ready state by which of the following actions? Select one: a. Newly-admitted process b. All the other answers c. Awaiting its turn on the CPU d. Completion of an I/O event
b. All the other answers
All access to POSIX shared memory requires a system call. Select one: a. True b. False
b. False
The communication with named pipes requires parent-child relationship. Select one: a. True b. False
b. False
The exec() system call creates a new process. Select one: a. True b. False
b. False
If process P0 is switched to process P1, state for P0 will be saved into ____, and state from ___ will be reloaded? Select one: a. PCB1, PCB1 b. PCB0, PCB1 c. PCB1, PCB0 d. PCB0, PCB0
b. PCB0, PCB1
For a single-processor system, there will never be more than one process in the Running state. Select one: a. False b. True
b. True
Ordinary pipes are unidirectional, allowing only one-way communication. Select one: a. False b. True
b. True
Ordinary pipes in UNIX require a parent-child relationship between the communicating processes. Select one: a. False b. True
b. True
init is the very first process for a typical Linux system. Select one: a. False b. True
b. True
Which of the following contains global data? Select one: a. stack section b. data section c. text section d. heap section
b. data section
Which of the following system calls is used to have a new program loaded into the new process's memory space? Select one: a. fork() b. exec() c. wait() d. exit()
b. exec()
Which of the following structures defines the process control block for Linux system? Select one: a. mm_struct b. task_struct c. files_struct d. schedu_entity
b. task_struct
Which of the following process state will be switched from "running" state when an I/O event occurs? Select one: a. terminated b. waiting c. ready d. new
b. waiting
A process that has terminated, but whose parent has not yet called wait(), is known as a ________ process. Select one: a. init b. zombie c. terminated d. orphan
b. zombie
What is the degree of multiprogramming for a single-processor system? Select one: a. 3 b. 2 c. 1 d. 0
c. 1
Which of the following is true? Select one: a. An I/O-bound process is one that spends more of its time doing computations than it spends doing I/O b. Both of the other 2 (other than none) c. An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations d. none of the other answers
c. An I/O-bound process is one that spends more of its time doing I/O than it spends doing computations
Which of the following statements is true? Select one: a. Message passing is typically faster than shared memory. b. Message passing is most useful for exchanging large amounts of data. c. Shared memory is typically faster than message passing. d. Shared memory is far more common in operating systems than message passing.
c. Shared memory is typically faster than message passing.
The _____________ refers to the number of processes in memory. Select one: a. long-term scheduler b. process count c. degree of multiprogramming d. CPU Scheduler
c. degree of multiprogramming
Which of the following system calls is used to let the parent process create a child process? Select one: a. exec(). b. wait(); c. fork(); d. abort();
c. fork();
The _______ process is assigned as the parent to orphan processes. Select one: a. zombie b. main c. init d. renderer
c. init
Which of the following process state will be switched from "ready" state? Select one: a. ready b. waiting c. running d. terminated
c. running
Which of the following memory space dynamically grows from high memory to low memory? Select one: a. data section b. text section c. stack section d. heap section
c. stack section
Which of the following contains the executable code? Select one: a. stack section b. heap section c. text section d. data section
c. text section
A _________________ saves the state of the currently running process and restores the state of the next process to run. Select one: a. save-and-restore b. None of the other answers c. state switch d. context switch
d. context switch
The ________ application is the application appearing on the display screen of a mobile device. Select one: a. display b. main c. background d. foreground
d. foreground
Which of the following contains memory allocated by malloc()? Select one: a. stack section b. text section c. data section d. heap section
d. heap section
A process control block ____. Select one: a. stores the address of the next instruction to be processed by a different process b. is an example of a process queue c. determines which process is to be executed next d. includes information on the process's state
d. includes information on the process's state
The list of processes waiting to execute on a CPU is called a(n) ____. Select one: a. device queue b. standby queue c. interrupt queue d. ready queue
d. ready queue