comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Simultaneous write on textfile over NFS
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Simultaneous write on textfile over NFS [message #69722] Wed, 10 February 2010 01:29 Go to previous message
Johannes Korn is currently offline  Johannes Korn
Messages: 5
Registered: January 2010
Junior Member
Hi,

I often run idl programs which utilize only one CPU core (for loops).
The output is a text line appended to a file.

To exploit a multicore I run multiple instances with different parameter
setups. The output goes to different files. After all jobs are completed
I manually merge the files.
This ways I have to keep track which file contains what output and so on.

My question, what happens if I use the same output file for all jobs. Is
it save?

This means every job would write about every 15 seconds a line like that.

OPENW, u, 'file.txt', /GET_LUN, WIDTH=250, /APPEND
printf, a, b, c
FREE_LUN,u

What if two write accesses collide? Will the file be corrupted? Will
there be an error? Will the second job wait until the first one has
closed the file?

Filesystem is NFS.

Regards,

Johannes
[Message index]
 
Read Message
Read Message
Previous Topic: Re: Serial port DLM for UNIX ?
Next Topic: Re: Image Warp Success?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:58:15 PDT 2025

Total time taken to generate the page: 0.00529 seconds