Java Multi threading - Avoid duplicate request processing

Posted by seawaves on Stack Overflow See other posts from Stack Overflow or by seawaves
Published on 2010-04-01T08:51:16Z Indexed on 2010/04/01 8:53 UTC
Read the original article Hit count: 130

Filed under:
|

I have following multi threaded environment scenario - Requests are coming to a method and I want to avoid the duplicate processing of concurrent requests coming. As multiple similar requests might be waiting for being processed in blocked state. I used hashtable to keep track of processed request, but it will create memory leaks, so how should keep track of processed request and avoid the same requests to be processed which may be in blocking state.

© Stack Overflow or respective owner

Related posts about java

Related posts about multithreading