Re: Concurrency Threads

2016-02-12 Thread Mike Sassak
Hi Fernando, You could try agents, but I'm not sure they're a good fit for periodic execution. I suggest looking at the scheduled Executors in java.util.concurrent, and then using them in your Clojure code. Mixes pretty much seamlessly with Clojure's refs and functions (indeed much of Clojure's co

Concurrency Threads

2016-02-12 Thread Fernando Abrao
Hello All, I 'm doing a program that have to: - Read a file with list of hosts ip - Start pinging from n threads pool or whatever - Cycle the pinging again after thread sleep What is the best way doing it? Producer and consumer to use queue? One thread by ip? Any advice about it? Regards, Fern