M
Marcelo
Hello,
I have a problem with a Monitor implementation. I would like to have a
linkedList with many threads inside (for dumping Images from urls).
However, whenever I launch many threads in parallel I get an out of
Memory problem (which is normal because of the size of the images I
suppose...).
I would like to launch 10-15 threads in parellel and then let the other
threads to just wait in the linked list.
while(condition to only have 10-15 threads){
get Element from list
launch thread
}
However, i just don't know when my threads finish. How can I do it?
Do you have an idea?
thank you very much for your help,
Marcelo
I have a problem with a Monitor implementation. I would like to have a
linkedList with many threads inside (for dumping Images from urls).
However, whenever I launch many threads in parallel I get an out of
Memory problem (which is normal because of the size of the images I
suppose...).
I would like to launch 10-15 threads in parellel and then let the other
threads to just wait in the linked list.
while(condition to only have 10-15 threads){
get Element from list
launch thread
}
However, i just don't know when my threads finish. How can I do it?
Do you have an idea?
thank you very much for your help,
Marcelo