Hi,
I have got a severe problem with performance when I run a multithreaded application.
We use our own Java-Server.(Web applicaitons)
It does not has any synchronized methods or synchrnonization.But only some times it uses an "Unsynchronized vector/Hashtable" to read the data from it.
We have 2 steps of execution.
1)Reading phases -- reads the streams and instantiates the objects and saves it locally.
2)Executes those objects..(like strategy
pattern)-For a while think it like this.
The problem is,
A single
thread applicaiton takes suppose 500ms.
Where as 10 Multithreaded application is taking almost around 5000ms each.
Can anyone please point out,why this is happening.
Can anyone please put me on right track.
B.Regards,
Jelda