Filters
Question type

Study Flashcards

How can deferred cancellation ensure that thread termination occurs in an orderly manner as compared to asynchronous cancellation?

Correct Answer

verifed

verified

In asynchronous cancellation, the thread...

View Answer

List the four major categories of the benefits of multithreaded programming. Briefly explain each.

Correct Answer

verifed

verified

The benefits of multithreaded programmin...

View Answer

Deferred cancellation is preferred over asynchronous cancellation.

A) True
B) False

Correct Answer

verifed

verified

In Pthreads, a parent uses the pthread_join() function to wait for its child thread to complete. What is the equivalent function in Win32?


A) win32_join()
B) wait()
C) WaitForSingleObject()
D) join()

E) None of the above
F) C) and D)

Correct Answer

verifed

verified

Multicore systems present certain challenges for multithreaded programming. Briefly describe these challenges.

Correct Answer

verifed

verified

Multicore systems have placed more press...

View Answer

Grand Central Dispatch requires multiple threads.

A) True
B) False

Correct Answer

verifed

verified

The _____ model maps each user-level thread to one kernel thread.


A) many-to-many
B) two-level
C) one-to-one
D) many-to-one

E) B) and C)
F) C) and D)

Correct Answer

verifed

verified

Which of the following is a synchronous signal?


A) illegal memory access
B) terminating a process with specific keystrokes
C) having a timer expire
D) none of the above

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

In multithreaded programs, the kernel informs an application about certain events using a procedure known as a(n) ____.


A) signal
B) upcall
C) event handler
D) pool

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

LWP is ____.


A) short for lightweight processor
B) placed between system and kernel threads
C) placed between user and kernel threads
D) common in systems implementing one-to-one multithreading models

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

Which of the following options exist to deliver signals in multithreaded program?


A) deliver the signal to the thread to which the signal applies
B) deliver the signal to every thread in the process
C) deliver the signal to certain threads in the process
D) assign a specific thread to receive all signals for the process
E) all of the above

F) A) and B)
G) B) and D)

Correct Answer

verifed

verified

Virtually all contemporary operating systems support kernel threads.

A) True
B) False

Correct Answer

verifed

verified

Which of the following cancellation modes are supported by Pthreads?


A) off mode
B) deferred mode
C) asynchronous mode
D) all of the above

E) B) and C)
F) A) and D)

Correct Answer

verifed

verified

Which of the following is an asynchronous signal?


A) illegal memory access
B) division by zero
C) terminating a process with specific keystrokes
D) none of the above

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

To associate each thread created using an implicit technique such as a thread pool, with its unique transaction identifier, we could use ____?


A) global variable
B) local variable
C) static data
D) thread-local storage

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

Parallelism can be achieved on single-processor systems.

A) True
B) False

Correct Answer

verifed

verified

In Java, data shared between threads is simply declared globally.

A) True
B) False

Correct Answer

verifed

verified

The default signal handler can be overridden by a user-defined signal handler.

A) True
B) False

Correct Answer

verifed

verified

OpenMP only works for C, C++, and Fortran programs.

A) True
B) False

Correct Answer

verifed

verified

Describe two techniques for creating Thread objects in Java.

Correct Answer

verifed

verified

One approach is to create a new class th...

View Answer

Showing 21 - 40 of 59

Related Exams

Show Answer