19/28
Part 5 of 6 · Errors and shared stateLearn and do

Two workers can both see a URL as new

When the workers share the visited set, here is the race.

Predict

No lock. Workers A and B both check /x before either adds it. What happens?

Pick an answer above to see the rest
Predict

A worker calls task_done() for a page before it puts the page's links. What can go wrong?

Pick an answer above to see the rest