Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 48 pages
Exam (elaborations)

Operating Systems (COS3721) Exam Questions And Answers 100% Verified And Updated.

Document preview thumbnail
Preview 4 out of 48 pages

Operating Systems (COS3721) Exam Questions And Answers 100% Verified And Updated. _____ is not considered a challenge when designing applications for multicore systems. A) Deciding which activities can be run in parallel B) Ensuring there is a sufficient number of cores C) Determining if data can be separated so that it is accessed on separate cores D) Identifying data dependencies between tasks. - AnswerB) Ensuring there is a sufficient number of cores A ____ provides an API for creating and managing threads. A) set of system calls B) multicore system C) thread library D) multithreading model - AnswerC) thread library The _____ model multiplexes many user-level threads to a smaller or equal number of kernel threads. A) many-to-many B) two-level C) one-to-one D) many-to-one - AnswerA) many-to-many The _____ model maps many user-level threads to one kernel thread. A) many-to-many B) two-level C) one-to-one ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED. 2 | P a g e D) many-to-one - AnswerD) many-to-one 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 - AnswerC) one-to-one The _____ model allows a user-level thread to be bound to one kernel thread. A) many-to-many B) two-level C) one-to-one D) many-to-one - AnswerB) two-level The most common technique for writing multithreaded Java programs is _____. A) extending the Thread class and overriding the run() method B) implementing the Runnable interface and defining its run() method C) designing your own Thread class D) using the CreateThread() function - AnswerB) implementing the Runnable interface and defining its run() method 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() - AnswerC) WaitForSingleObject() Which of the following statements regarding threads is false? A) Sharing is automatically provided in Java threads. B) Both Pthreads and Win32 threads share global data. C) The start() method actually creates a thread in the Java virtual machine. D) The Java method join() provides similar functionality as the WaitForSingleObject in Win32. - AnswerA) Sharing is automatically provided in Java threads. A _____ uses an existing thread — rather than creating a new one — to complete a task. A) lightweight process ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED. 3 | P a g e B) thread pool C) scheduler activation D) asynchronous procedure call - AnswerB) thread pool According to Amdahl's Law, what is the speedup gain for an application that is 60% parallel and we run it on a machine with 4 processing cores? A) 1.82 B) .7 C) .55 D) 1.43 - AnswerD (?) according to memo A according to calculations + telegram _________ involves distributing tasks across multiple computing cores. A) Concurrency B) Task parallelism C) Data parallelism D) Parallelism - AnswerB) Task parallelism ___________ is a formula that identifies potential performance gains from adding additional computing cores to an application that has a parallel and serial component. A) Task parallelism B) Data parallelism C) Data splitting D) Amdahl's Law - AnswerD) Amdahl's Law When OpenMP encounters the #pragma omp parallel directive, it A) constructs a parallel region B) creates a new thread C) creates as many threads as there are processing cores D) parallelizes for loops - AnswerC) creates as many threads as there are processing cores Grand Central Dispatch handles blocks by A) placing them on a dispatch queue B) creating a new thread C) placing them on a dispatch stack D) constructing a parallel region - AnswerA) placing them on a dispatch queue ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED. 4 | P a g e A traditional (or heavyweight) process has a single thread of control. - AnswerTrue A thread is composed of a thread ID, program counter, register set, and heap - AnswerFalse Virtually all contemporary operating systems support kernel threads - AnswerTrue Linux distinguishes between processes and threads - AnswerFalse In Java, data shared between threads is simply declared globally - AnswerFalse Each thread has its own register set and stack - AnswerTrue Deferred cancellation is preferred over asynchronous cancellation. - AnswerTrue The single benefit of a thread pool is to control the number of threads. - AnswerFalse It is possible to create a thread library without any kernel-level support - AnswerTrue It is possible to have concurrency without parallelism - AnswerTrue Amdahl's Law describes performance gains for applications with both a serial and parallel component - AnswerTrue OpenMP only works for C, C++, and Fortran programs. - AnswerTrue Grand Central Dispatch requires multiple threads - AnswerFalse The trend in developing parallel applications is to use implicit threading - AnswerTrue Task parallelism distributes threads and data across multiple computing cores - AnswerFalse Which of the following is true of coo

Content preview

©FYNDLAY 2024/2025 ALL RIGHTS RESERVED.



Operating Systems (COS3721) Exam
Questions And Answers 100% Verified And
Updated.



_____ is not considered a challenge when designing applications for multicore systems.
A) Deciding which activities can be run in parallel
B) Ensuring there is a sufficient number of cores
C) Determining if data can be separated so that it is accessed on separate cores
D) Identifying data dependencies between tasks. - Answer✔B) Ensuring there is a sufficient
number of cores
A ____ provides an API for creating and managing threads.
A) set of system calls
B) multicore system
C) thread library
D) multithreading model - Answer✔C) thread library
The _____ model multiplexes many user-level threads to a smaller or equal number of kernel
threads.
A) many-to-many
B) two-level
C) one-to-one
D) many-to-one - Answer✔A) many-to-many
The _____ model maps many user-level threads to one kernel thread.
A) many-to-many
B) two-level
C) one-to-one


1|Page

, ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED.

D) many-to-one - Answer✔D) many-to-one
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 - Answer✔C) one-to-one
The _____ model allows a user-level thread to be bound to one kernel thread. A) many-to-many
B) two-level
C) one-to-one
D) many-to-one - Answer✔B) two-level
The most common technique for writing multithreaded Java programs is _____.
A) extending the Thread class and overriding the run() method
B) implementing the Runnable interface and defining its run() method
C) designing your own Thread class
D) using the CreateThread() function - Answer✔B) implementing the Runnable interface and
defining its run() method
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() - Answer✔C) WaitForSingleObject()
Which of the following statements regarding threads is false?
A) Sharing is automatically provided in Java threads.
B) Both Pthreads and Win32 threads share global data.
C) The start() method actually creates a thread in the Java virtual machine.
D) The Java method join() provides similar functionality as the WaitForSingleObject in Win32. -
Answer✔A) Sharing is automatically provided in Java threads.
A _____ uses an existing thread — rather than creating a new one — to complete a task.
A) lightweight process

2|Page

, ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED.

B) thread pool
C) scheduler activation
D) asynchronous procedure call - Answer✔B) thread pool
According to Amdahl's Law, what is the speedup gain for an application that is 60% parallel and
we run it on a machine with 4 processing cores?
A) 1.82
B) .7
C) .55
D) 1.43 - Answer✔D (?) according to memo A according to calculations + telegram
_________ involves distributing tasks across multiple computing cores.
A) Concurrency
B) Task parallelism
C) Data parallelism
D) Parallelism - Answer✔B) Task parallelism
___________ is a formula that identifies potential performance gains from adding additional
computing cores to an application that has a parallel and serial component.
A) Task parallelism
B) Data parallelism
C) Data splitting
D) Amdahl's Law - Answer✔D) Amdahl's Law
When OpenMP encounters the #pragma omp parallel directive, it
A) constructs a parallel region
B) creates a new thread
C) creates as many threads as there are processing cores
D) parallelizes for loops - Answer✔C) creates as many threads as there are processing cores
Grand Central Dispatch handles blocks by
A) placing them on a dispatch queue
B) creating a new thread
C) placing them on a dispatch stack
D) constructing a parallel region - Answer✔A) placing them on a dispatch queue

3|Page

, ©FYNDLAY 2024/2025 ALL RIGHTS RESERVED.

A traditional (or heavyweight) process has a single thread of control. - Answer✔True

A thread is composed of a thread ID, program counter, register set, and heap - Answer✔False
Virtually all contemporary operating systems support kernel threads - Answer✔True

Linux distinguishes between processes and threads - Answer✔False

In Java, data shared between threads is simply declared globally - Answer✔False
Each thread has its own register set and stack - Answer✔True

Deferred cancellation is preferred over asynchronous cancellation. - Answer✔True

The single benefit of a thread pool is to control the number of threads. - Answer✔False
It is possible to create a thread library without any kernel-level support - Answer✔True
It is possible to have concurrency without parallelism - Answer✔True
Amdahl's Law describes performance gains for applications with both a serial and parallel
component - Answer✔True
OpenMP only works for C, C++, and Fortran programs. - Answer✔True

Grand Central Dispatch requires multiple threads - Answer✔False

The trend in developing parallel applications is to use implicit threading - Answer✔True
Task parallelism distributes threads and data across multiple computing cores - Answer✔False
Which of the following is true of cooperative scheduling?
A) It requires a timer.
B) A process keeps the CPU until it releases the CPU either by terminating or by switching to the
waiting state.
C) It incurs a cost associated with access to shared data.
D) A process switches from the running state to the ready state when an interrupt occurs. -
Answer✔B) A process keeps the CPU until it releases the CPU either by terminating or by
switching to the waiting state.
2. ____ is the number of processes that are completed per time unit.
A) CPU utilization
B) Response time
C) Turnaround time
D) Throughput - Answer✔D) Throughput


4|Page

Document information

Uploaded on
January 23, 2025
Number of pages
48
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Fyndlay
3.7
(77)
Sold
428
Followers
82
Items
21033
Last sold
3 days ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions