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

Creating a file with timestamp 4778


Your Ad Here

Your Ad Here

Peter,

Peter T. Breuer

I know what SMP is. Even though there would be more than one process running on the machine at a time, there was only 1 processor in the box. Therefore, I thought that there would be no way for each process to come up with the same amount of milliseconds or nanoseconds (since one process can get a hold of the CPU - to actually do work - at one time).

If there was more than one processor invovled, then I can see some problems going on with my initial approach.

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 processor. Yes it would be best to do things that...

way I can use the facility. People had mentioned the use of the generation of the sequential number. I thought they were mentioning that I could do this by doing some kind of looping feature in ONE process. So, I wanted to clarify that TWO or MORE processes would be running in which case, I would have to use something OS related to get a unique number - i.e. it could not be a part of the code itself.

NO! What I meant is that there would be more than one process running the same program at the same time. Both processes would access the database. If the DB is down, then BOTH processes will blow up. BOTH will need to write error files at the same time. I thought that if only one process could get a hold of the CPU then the time generated would be different - again, I am thinking that this would not be the case if more than one CPU is in the box.

Creating a file with timestamp 4779
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...

Thanks.



Your Ad Here

List | Previous | Next

Creating a file with timestamp 4779

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Backing up and encryption with GPG 4777