Quiz 3

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

A Process control block ________. A. Includes information on the process's state. B. stores the address of the next instruction to be processed by a different process. C. determines which process is to be executed next D. is where the hacker stores his notes.

A. Includes information on the process's state

A matchmaker service does what? A. Provides a service to help connect a client and server B. Allows parent thread to find it's children C. A dating service between computers D. Provides a service to establish interprocess communication paths.

A. Provides a service to help connect a client and server

Which of the following statements is true? A. Shared memory is typically faster than message passing B. Message passing is typically faster than shared memory C. Message passing is most useful for exchanging large amounts of data. D. Shared memory is far more common in operating systems than message passing.

A. Shared memory is typically faster than message passing.

In a(n) ______ temporary queue, the sender must always block until the recipient receives the message. A. zero capacity B. variable capacity C. bounded capacity D. unbounded capacity

A. zero capacity

A process that has terminated, but whose parent has not yet called wait( ), is known as a(n) _______ process. A. zombie B. orphan C. terminated D. limbo

A. zombie

A blocking send( ) and blocking receive( ) is known as a(n) _______. A. synchronized message B. rendezvous C. blocked message D. asynchronous message

B. Rendezvous

The list of processes waiting for a particular I/O device is called a(n) _____. A. standby queue B. device queue C. ready queue D. interrupt queue

B. device queue

In a linux operating system, the _______ process is assigned as the parent to orphaned processes. A. zombie B. init C. main D. master

B. init

Imagine that a host with IP address 150.55.66.77 wishes to download a file from the web server at IP address 202.28.15.123. Select a valid socket pair for a connection between this pair of hosts. A. 150.55.66.77.80 and 202.28.15.123.80 B. 150.55.66.77.150 and 202.28.15.123.80 C. 150.55.66.77.2000 and 202.28.15.123.80 D. 150.55.66.77.80 and 202.28.15.123.3500

C. 150.55.66.77.2000 and 202.28.15.123.80

A __________ saves the state of the currently running process and restores the state of the next process to run. A. save-and-restore B. state switch C. context switch D. none of the above

C. context switch

When communicating with sockets, a client process initiates a request for a connection and is assigned a port by the host computer. Which of the following would be a valid port assignment for the host computer? A. 21 B. 23 C. 80 D. 1625

D. 1625

A process may transition to the ready state by which of the following actions? A. Completion of an I/O event. B. Awaiting it's turn on the CPU C. Newly-admitted process D. All of the above

D. All of the above.

When a child process is created, which of the following is a possibility in terms of execution or address space of the child process? A. The child process runs concurrently with the parent. B. The child process has a new program loaded into it. C. The child is a duplicate of the parent. D. All of the above.

D. All of the above.

The ____ of a process contains temporary data such as function parameters, return addresses, and local variables. A. Text Section B. Data Section C. Program Counter D. Stack

D. Stack

(T/F) Shared memory is a more appropriate IPC mechanism than message passing for distributes systems (e.g. client-server)

False

(T/F) The difference between a program and a process is that a program is an active entity while a process is a passive entity.

False

(T/F) The exec( ) system call creates a new process.

False

(T/F) Named pipes continue to exist in the system after the creating process has terminated.

True

(T/F) Ordinary pipes in UNIX require a parent-child relationship between the communicating processes

True

The mailbox can be owned by a process or the operating system.

True


Kaugnay na mga set ng pag-aaral

Chapter 1.1: What is the Internet?

View Set

SOCI210 The Real World: Introduction to Sociology Chapters 1-7 (Ch. 2 omitted) MIDTERM Study Guide

View Set

Computer Networks/Cyber Security 330

View Set

Praxis II: Music: Content and Instruction (5114)

View Set

Human Growth and Development Final

View Set

Training and Development - Chapter 5

View Set

AP Human Geography - Unit 2 TEST STUDY GUIDE

View Set

Chapter 15: The Statute of Frauds

View Set

Transitional Devices (Connecting Words)

View Set