Ravi Goel wrote:
> Hi everybody,
>
> When we run our application for the First time, then the application seems
> to take longer time when compared to the second, third or subsequent times.
> This happens not only with our application but even with the Java Examples.
>
> So can anybody tell us, what does the JVM do when the Applictaion runs for
> the 1st time we start the PC & what it does not do  when the application is
> closed & restarted again.

Same is true for any other application. This is operating system thing.
First time you load appliacation, new areas of disk has to be read. This
takes time. On next loads, most of data is cached in memory, which means
that it is available a lot faster. Also, depending on OS, some dynamic
libraries can also be cached, which is also an increase.

MS for example does one dirty trick for IE - it preloads some components
during startup of system. Thanks to that, most of stuff is already
loaded when you run IE - but still first run will take a bit longer than
next ones.

Please remember, that this is not OS _fault_ - by default, application
should always start as long as for the first time. It is _thanks_ to OS
that subsequent runs are faster.

Artur

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to