Question: Consider a code with parallel programming with threads and locks using a hash table. Modify the imaginary code so that get operations run in parallel
Consider a code with parallel programming with threads and locks using a hash table.
Modify the imaginary code so that get operations run in parallel while maintaining correctness. Are the locks in get necessary for correctness in this application?
Modify your code so that some put operations run in parallel while maintaining correctness. (Hint: would a lock per bucket work?) What do you observe?
I just want a general answer regarding a parallel program with threads and locks.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
