> I have recompiled the java files using java 1.2.2_15 on winXP and retested
> (many time) the program wothout any problems. But even with the news java
> (1.4.2_04) I get the same problem. And it happens almost all the time. I
> have analyzed the program and found a problem. when using java 1.4.2_04
> alle the threads ends up in waiting state. This shouldnot happen and it
> does not happen in 1.2.2_15.
It is, however, most likely to be a problem in your code that happens not to
manifest in a 1.2.x JVM. Just because a program (*especially* a threaded
program) works on one JVM, but does not on another, in no way implies that
there is a problem in either JVM implementation. Since it is so *very*
difficult to get threaded code right, if I were in your position then I would
assume that the problem was in my code.
That's not *certain* of course, but I personally would not waste time trying to
find bugs in 1.4.2 until after I fully understood how my application ended up
in that state.
-- chris
Kovan Akrei - 16 Mar 2004 18:04 GMT
> It is, however, most likely to be a problem in your code that happens not to
> manifest in a 1.2.x JVM. Just because a program (*especially* a threaded
> program) works on one JVM, but does not on another, in no way implies that
> there is a problem in either JVM implementation. Since it is so *very*
> difficult to get threaded code right, if I were in your position then I would
> assume that the problem was in my code.
That's true. I think the error is in the code. I havn't written the code. I
have downloaded from the net. I'm just testing it and comparing it to my own
code written in C# (CSharp). Both codes are very similar to each other. My
code has no problems. I have been running long simulations without any
problem.
> That's not *certain* of course, but I personally would not waste time trying to
> find bugs in 1.4.2 until after I fully understood how my application ended up
> in that state.
I wont do that :)
Thanks for your help.