I am using a file i/o based perl script. This script will be used in parallel by many threads. There is a chance of two threads use it at the same time stamp. I am using file i/o in the script i.e
open(FILE,"<",$file_array);
my @file_array = <FILE>;
close(FILE);
1) Is there a chance of resource sharing conflict on @file_array data structure between two parallel threads using the script at the same time stamp.
2) If so how to avoid it?
3) How does the memory allocation is handled during such cases?
Thanks, Abhishek