in reply to Re^4: is a readonly hash thread safe ?
in thread is a readonly hash thread safe ?
No. The reference is a copy of the reference, and the data is a copy of the referenced data. Again, see perlthrtut, and threads::shared. Threads don't share things as you might come to expect if you think of C-level threads.
|
|---|