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 concurrency on the JVM is built on top of j.u.concurrent).

Mike

On Fri, Feb 12, 2016, 4:59 PM Fernando Abrao <fdab...@gmail.com> wrote:

> 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,
>
> Fernando
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to