Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Study Guide Understand the difference between Map and Set Understand how Map and

ID: 3729146 • Letter: S

Question

Study Guide Understand the difference between Map and Set Understand how Map and Set increase their capacities Know different types of Map and Set Know how to define a class/interface using Generics (We also linked some videos on course website-resources-important links that may be helpful) · · Study Guide Understand the difference between thread and core Understand how parallel programming works in high level Being able to trace multithreaded code and tell the expected output » Practice Problems 1. Say if a program takes 40s to run, and we can divide the work equally (i.e. the program can be executed in parallel). T/F: If a computer has 4 threads and 1 core, then we can assign the work to different threads so that running the whole program takes roughly 10s. T/F: If a computer has 4 threads and 8 cores, then we can assign the work to different cores so that running the whole program takes roughly 10s T/F: If a computer has 2 threads and 2 cores, then we can assign the work to different cores so that running the whole program takes exactly 20s

Explanation / Answer

1 a). If a computer has 4 threads and 1 cores ,then we can assign the work to differenrt threads so that running the whole program takes roughly 10s ===>>> False

b). If a computer has 4 threads and 8 cores ,then we can assign the work to differenrt threads so that running the whole program takes roughly 10s ===>>> True

c). If a computer has 2 threads and 2 cores ,then we can assign the work to differenrt threads so that running the whole program takes roughly 20s ===>>> True