Given a two-CPU machine and four threads, how many of the threads can execute in parallel?
A) Only 1 can execute at a time.
B) 2 can execute in parallel.
C) 3 can execute in parallel.
D) All 4 can execute in parallel.
Correct Answer:
Verified
Q3: Suppose run1 and run2 are objects of
Q4: Which exception must be caught or declared
Q5: When a thread is interrupted, the most
Q6: When a sleeping thread is interrupted, an
Q7: Which of the following class declarations could
Q9: Which constructor can be used to create
Q10: For threads of equal priority, which is
Q11: In which method are the tasks that
Q12: When a sleeping thread is interrupted, a(n)
Q13: Each thread runs for a short amount
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents