A tutorial of debug hacks.
Link: Java Debug Hacks (CHN)
The code to practice with: code repo
Objective A
Practice adding watchpoint, modifying variable, conditional breakpoint, switching threads. Note that if you are debugging the multithreaded version of code, you should combine conditional breakpoint and thread switching together. This will help you get an experience of thread execution.
Objective B
Answer: in function
quickMultiply, what does aCyclicBarrierserve for? Why the barrier value is 5 instead of 4? What's the consequence of changing it into 4?
For Objective A, you are expected to make a screenshot for each debug hack, and give a short explanation of your purpose for each one.
For both objectives, you can write them into a single document or two(doc, docx, pdf, markdown). Append your document(s) to your "Doubly-linked list" homework.