Compiling on a dual core machine and running the class files on linux.

does compiling on a dual core machine and running the class files on linux have any effect?
[98 byte] By [Aldricha] at [2007-11-27 4:56:30]
# 1
i mean. does something change?
Aldricha at 2007-7-12 10:11:43 > top of Java-index,Java Essentials,Java Programming...
# 2

Have you tried it? What effect are you seeing that you feel may be because of this?

In general, it should have no effect, that does not mean it will not in some extreme cases, but it definately should not, and I (personally) don't know of any instances where it has.

I assume you are having some type of problem? If, so, then like I said,

explain your problem (fully) and we will better be able to help you.

masijade.a at 2007-7-12 10:11:43 > top of Java-index,Java Essentials,Java Programming...
# 3
well, the problem that i felt was that when i run my class files on my machine(windows xp, dual core), Thread.sleep(60000) sleeps for 1 minute. but when i run it on a linux machine, Thread.sleep(60000) sleeps for 2 minutes. my application has a lot of threads.
Aldricha at 2007-7-12 10:11:43 > top of Java-index,Java Essentials,Java Programming...
# 4

> well, the problem that i felt was that when i run my

> class files on my machine(windows xp, dual core),

> Thread.sleep(60000) sleeps for 1 minute. but when i

> run it on a linux machine, Thread.sleep(60000) sleeps

> for 2 minutes. my application has a lot of threads.

I can't be 100% sure, but I'm pretty sure that sleep(60000) doesn't sleep for 2 minutes on the other machine.

kajbja at 2007-7-12 10:11:43 > top of Java-index,Java Essentials,Java Programming...
# 5
java version was 1.5 build 7. gonna go get some concrete proof, thanks for your time guys.
Aldricha at 2007-7-12 10:11:43 > top of Java-index,Java Essentials,Java Programming...
# 6

> > well, the problem that i felt was that when i run

> my

> > class files on my machine(windows xp, dual core),

> > Thread.sleep(60000) sleeps for 1 minute. but when

> i

> > run it on a linux machine, Thread.sleep(60000)

> sleeps

> > for 2 minutes. my application has a lot of

> threads.

>

> I can't be 100% sure, but I'm pretty sure that

> sleep(60000) doesn't sleep for 2 minutes on the other

> machine.

I, wholeheartedly, agree.

Due to timing issues it may seem to sleep a few milliseconds more, but not double.

Of course, if there is a "real-time" (or even simply higher than the Java app) priority program running that is using a lot of the CPU it may seem like it sleeps a lot longer than 60000, but that is a different issue.

masijade.a at 2007-7-12 10:11:43 > top of Java-index,Java Essentials,Java Programming...