Java Download Concurrent Data
Posted
by xger86x
on Stack Overflow
See other posts from Stack Overflow
or by xger86x
Published on 2010-06-14T10:54:33Z
Indexed on
2010/06/14
11:02 UTC
Read the original article
Hit count: 204
java
|concurrency
Hi,
i'm developing an app which download map tiles around different places in a city. To do this, i have one thread for each place in which i select the tiles and create a thread to download each.
Well, the question is how to avoid creating a thread for a tile that already exists in the thread pool.
Should not just check if the file exists, since it is possible that the thread for that tile already exists (other place already need that tile) but the file has not been created-
Any idea? Thanks
© Stack Overflow or respective owner