Just another Perl shrine | |
PerlMonks |
Re: Inconsistent results with keys on thread shared hashesby ikegami (Patriarch) |
on Aug 03, 2022 at 06:11 UTC ( [id://11145912]=note: print w/replies, xml ) | Need Help?? |
Simpler:
You are both reading and modifying the hash — specifically its iterator — in multiple threads. You need a lock.
In Section
Seekers of Perl Wisdom
|
|