in reply to Re: Trouble passing an array reference to my threads
in thread Trouble passing an array reference to my threads

The thread inherits a COW (Copy on write) copy of a part of the array

There's no COW, it's just a copy created the same time the thread created.

  • Comment on Re^2: Trouble passing an array reference to my threads

Replies are listed 'Best First'.
Re^3: Trouble passing an array reference to my threads
by NetWallah (Canon) on Nov 23, 2011 at 23:41 UTC
    You are probably right - I made some assumptions based on my (limited) understanding of how threads are implemented - I thought I read somewhere that there is an underlying fork, which does COW.

                "XML is like violence: if it doesn't solve your problem, use more."

      I think it is exactly opposite -- fork emulation implemented using threads on Windows