Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Servlets and threads


  • From: anikomei@xxxxxxxxxxx (Sameer Gurung)
  • Subject: [Advanced-java] Servlets and threads
  • Date: Fri, 25 Jan 2002 11:42:46 +0530

Hi folks,
	Well I'm stuck and I need your help. The problem is this:


I have spawned two threads in a Servlet. In both the threads I do some 
calculations and they should return a Vecotor of values to the Servlet. I 
then form a bigger vector( say result) by combining the two Vectors. Now the 
problem comes when I have two or more requests coming to the Servlet. When I 
have just one request then the Vector result contains the correct amount of 
data. When the no. of requests becomes 2 the it contains double the data.
	What should happen is that the respective requests should be sent their 
respective result Vectors. Any way of ensuring this?


Thanks

Sameer


_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com