[erlang-questions] perform a function on a fixed time interval

Roberto Ostinelli <>
Tue Aug 24 13:06:12 CEST 2010


2010/8/24 Mazen Harake <>:
>  Be cautious,
>
> Using send messages in an interval is dangerous if compute() can take more
> then the interval. It can build up message queues on a congested system;
> especially if what compute() does has side effects.
>
> Just a word of advise.
>

you are absolutely right, and i'm aware of the issue.

it's a game engine which needs to detect collision between particles,
and thus it needs to periodically compute the position of all elements
and see if these collide or not.

what would you recommend to ensure avoiding this issue?


More information about the erlang-questions mailing list