CSC 415 Operating System Principles Chapter 3

Ace your homework & exams now with Quizwiz!

The _______ process is assigned as the parent to orphan processes. Select one: a. zombie b. main c. init d. renderer

c. init

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

A socket is identified by an IP address concatenated with a port number. True False

True

Local Procedure Calls in Windows XP are similar to Remote Procedure Calls. True False

True

Named pipes continue to exist in the system after the creating process has terminated. True False

True

Ordinary pipes in Windows require a parent-child relationship between the communicating processes. True False

True

The Mach operating system treats system calls with message passing. True False

True

The iOS mobile operating system only supports a limited form of multitasking. True False

True

Using a section object to pass messages over a connection port avoids data copying. True False

True

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

Sockets are considered a high-level communications scheme. 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

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();

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

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

Which of the following contains dynamically allocated data during program run time? text section data section heap section stack section

heap section

What is done by command "spy -el" on Unix and Linux systems? list complete information for all processes currently active in the system list complete information for all processes currently running in background list complete information for all files currently open in the system list complete information for all folders currently open in the system

list complete information for all processes currently active in the system

Which of the following IPC mechanism is easier to implement in a distributed system? shared memory message passing socket communication ordinary pipe

message passing

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

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

init is the very first process for a typical Linux system. Select one: a. False b. True

b. True

All processes in UNIX first translate to a zombie process upon termination. Select one: a. True b. False

a. True

Which of the following is true in a Mach operating system? All messages have the same priority. Multiple messages from the same sender are guaranteed an absolute ordering. The sending thread must return immediately if a mailbox is full. It is not designed for distributed systems.

All messages have the same priority.

Which of the following is not a process type in the Chrome browser? Plug-in Renderer Sandbox Browser

Sandbox

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

Assume the shared buffer is implemented as a circular array with two logical pointers: in and out. The variable in points to the next free position in the buffer; out points to the first full position in the buffer. Which of the following is true? The buffer is empty when in == out; the buffer is full when ((in + 1) % BUFFER SIZE) == out; The buffer is full when in == out; the buffer is empty when ((in + 1) % BUFFER SIZE) == out; All the elements of the buffer can be used; Both A and C

The buffer is empty when in == out; the buffer is full when ((in + 1) % BUFFER SIZE) == out;

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

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

The exec() system call creates a new process. Select one: a. True b. False

b. False


Related study sets

Physics II: Mini Exam 3 Lecture Questions

View Set

Honan Nursing Management: Patients With Endocrine Disorders

View Set

Задачі для практики

View Set

Louis pasteur and Ignaz Semmelweis

View Set

LUOA U.S. History Module 1 Study Guide

View Set