Super Contributor.
Super Contributor.
739 views

multiple scripts with same data file

Jump to solution

If one has a bunch of small simple scripts using a small data file, will there be issues with multiple reads of the same file?  At what point should one think in terms of a unique data file for each script to avoid data file contention issues?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

RE: multiple scripts with same data file

Jump to solution

Hi Steve

The files are read into memory at the start so there is no actual cross script sharing going on beyond the initial read so there should not be a problem.  Writing to a file would be a different matter though.  If writing you would need to manage the resource using GlobalResourceEnter and Release functions and therefore it would be better to have separate files if writing.  

View solution in original post

0 Likes
1 Reply
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

RE: multiple scripts with same data file

Jump to solution

Hi Steve

The files are read into memory at the start so there is no actual cross script sharing going on beyond the initial read so there should not be a problem.  Writing to a file would be a different matter though.  If writing you would need to manage the resource using GlobalResourceEnter and Release functions and therefore it would be better to have separate files if writing.  

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.