Currently, each tile that has to be downloaded spawns a new thread.
An Executor with a fixed thread pool should be used instead. Considering that OpenStreetView allows 2 simultaneous requests from the same IP, the maximum number of threads should be 2.
Currently, each tile that has to be downloaded spawns a new thread.
An
Executor
with a fixed thread pool should be used instead. Considering that OpenStreetView allows 2 simultaneous requests from the same IP, the maximum number of threads should be 2.