Will there be some conflict while I use fork?
You cannot push to an array in the parent with fork; thus any data originating in a child will never be seen by its parent.
In terms of your sample code, our @quality will be a different variable in each child and the parent variable of the same name will never contain data pushed in the children.
In reply to Re: shared array while use ForkManager
by BrowserUk
in thread shared array while use ForkManager
by mlin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |