
Parallel and concurrent programming
Authored by Jose Alfredo Herrera Quispe
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What means these code?
Parallel is more faster than not parallel
Parallel require more time for comunication task
Parallel is more slower than not parallel
sys time is the all system time
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The four classifications of Flynn's Taxonomy are based on the number of concurrent _____ streams and _____ streams available in the architecture.
instruction; data
operations; data
program; data
process; memory
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Parallel computing can increase the _____.
number of tasks that a program can complete within a specified period of time
"speed at which a program executes a set number of tasks"
scale of problems a program can tackle
all of these answers
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A key advantage of distributed memory architectures is that they are _____ than shared memory systems.
more responsive
more scalable
easier to program for
less complex
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A thread that calls the join method on another thread will enter a _____ state until the other thread finishes executing.
new
runnable
terminated
blocked
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why would you use detached daemon threads to handle continuous background tasks?
Daemon threads always execute at the lowest priority which makes them ideal for background tasks.
Daemon threads will automatically spawn additional helper threads as needed when their workload increases.
You should never trust a daemon. They're mischievous!
The daemon thread will not prevent the program from terminating when the main thread is finished.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Why can it be risky to use a detached daemon thread to perform a task that involves writing data to a log file?
Daemons only write their own name, so the log will just say "Daemon, Daemon, Daemon, etc."
Daemon threads cannot read or write files.
The log file could be corrupted.
The log file could end up with multiple, duplicate entries.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?