PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

Creating a file with timestamp 4779


Your Ad Here

Your Ad Here

Creating a file with timestamp 4782
No, I mean what I said ("open" is a libc function, and it will succeed unless you use OEXCL). That's not a log. It's a dump. You can generate cores with the pid...

Most recent processors have two cpus. Hyperthreading. Anyway, you don't know where your code is written, nor even what the time granularity of that system is, so you must think of a way that does not rely on different events happening at different system times.

Then look a bit harder at your box. Is it P4 or better? Is it 3.2GHz or better?

Facility? There are many such. Man -k temp grep file.

I don't believe they did. I saw you INTERPRET what they said as such, however, (TTBOMR) despite it not being what they were saying.

Creating a file with timestamp 4780
Peter T. Breuer Well, the one I am using now is pretty old - but I will take a peek. Nope - only one...

Of course it can. You can perfectly well in your code write a file containing a sequence number invar-state-wherever and open it under locking to get unique access while you read and increment that number. Then your processes can create their unique files from that unique seed, secure in the knowledge that they will not clash.

Uh, that's what I said. Programs are always run by processes, so telling us that a process is running your program is saying nothing more. Therefore what you said is "there would be more than one program running at the same time", which is what *I* said. So your sentence needs to start with "yes", not "no".

Creating a file with timestamp 4781
Peter T. Breuer You mean two processes can access the same file in read mode and not in write mode? OK Yes, a core can happen but the goal is...

I THINK you meant to say that while several (similar) programs may be in the process table at the same time, only ONE of them will be *running* at a time. Which is of course false on a SMP arch, but is what I think you were struggling to voice.

Groovy. And what's wrong with them both writing to the same error file UNDER LOCKING? They can each write a nice line with the date, heir message, their tag, and then yield the log.

Good thinking.

Peter



Your Ad Here

List | Previous | Next

Creating a file with timestamp 4780

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Creating a file with timestamp 4778