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

Home » Public Forums » archive » Multiple journal files on linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Multiple journal files on linux [message #31206 is a reply to message #31108] Wed, 19 June 2002 08:57 Go to previous messageGo to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On 19 Jun 2002, Mark McGrath wrote:
> This routine makes an `almost' unique file. An example:
> Running IDL on a linux cluster, as we do here, if the machine clocks
> are a litle out of sync it would be possible to over write the file
> that had been opened already, no? (Not much info lost there though,
> but the more serious case of the clocks being a lot out of sync then
> large amounts of info in the journal file could be lost.)
>
> Any ideas, anyone?

I ran into the problem of making a unique directory on a
multiprocessor machine, where a timestamp may not suffice...

Use the unique process ID. Each IDL session will have a unique PID, no
matter how many processors and what the time is on each machine... I
use a combination, the time (in msec), then a "_", then the PID.

I believe you can still have multiple processes assigned the same time
and PID if you are using networked computers (as opposed to 1 computer
with multiple processors), but the chances, especially when using msec
and not sec, drop to VERY low.

-k.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget_table without scroll bars
Next Topic: axis is too thin? - test.ps (0/1)

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

Current Time: Sat Nov 29 17:20:11 PST 2025

Total time taken to generate the page: 0.23537 seconds