FreeBSD vs Windows 2000 "Advanced" Server
Panagiotis Astithas
past at noc.ntua.gr
Thu Aug 28 04:28:35 PDT 2003
Branko F. Grac(nar wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> |
> | These are not meaningful numbers. The program wasn't designed to test
> | thread instantiation performance, and is pretty much guaranteed to do a
> | shit job of it. :-)
> |
> | You need enough sleep time to ensure that all the threads are active at
> | once.
>
> $ time java TestThreads 50000 10000
> TestThreads: successfully fired 50000 threads
> TestThreads: waited 10000 milliseconds for all threads to complete
>
> real 2m41.536s
> user 2m8.008s
> sys 0m5.261s
You specify a sleep time of 10000 msec = 10 sec and your program takes
2min+42sec = 162sec to execute. Therefore one would assume that some of
the threads finished before others started, thus failing to stress the
limits of thread allocation by the system.
Why don't you try an insane timeout, like 900000;
Cheers,
--
Panagiotis Astithas
Electrical & Computer Engineer, PhD
Network Management Center
National Technical University of Athens, Greece
More information about the freebsd-java
mailing list