How JDK support number of cpu

I write a Java Application to access DB.when I run this Java Application on a 2-CPU Windows Platform with JDK 1.4,It uses 5s.But when I use JDK 1.5,It only use 2.8s.How does this occur?Does JDK1.5 support better for more CPU?Best Regards
[258 byte] By [kenyoua] at [2007-10-2 3:29:45]
# 1

Java 1.5 has many performance enhancements compared to previous versions, it's not specifically because Java 1.5 knows how to handle multiple CPUs better.

See this part of the JDK 5.0 release notes:

[url=http://java.sun.com/j2se/1.5.0/docs/guide/performance/speed.html]Improvements to Program Execution Speed - Enhancements in JDK 5.0[/url]

jesperdja at 2007-7-15 22:39:29 > top of Java-index,Java Essentials,Java Programming...