<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Oct 4, 2013 at 10:59 AM, Stefano Danzi <span dir="ltr"><<a href="mailto:s.danzi@hawai.it" target="_blank">s.danzi@hawai.it</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Laurens,<br>
many thanks for yours considerations.<br>
<br>
1) I don't have problems about latency but I can't halt all during the computation.</blockquote><div><br></div><div>Why not?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I can defer the computation for minutes if I attach to data the timestamp related to when data arrives.<br></blockquote><div><br></div><div>Sure, gettimeofday is a thing, that shouldn't be a problem.<br></div><div> </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) The "monster" machine that have to do all is an embedded pc based on 1000MHz AMD Geode NX1500<br></blockquote><div><br></div><div>Okay, so single core.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


3) The long computation need only the data. In extremis I could write data on a file or DB and compute using another program.<br></blockquote><div><br></div><div>I would imagine you do that anyway for persistence reasons with the results :)<br>

</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I bit better explanation of scenario:<br>
<br>
The radiomodem take "unexpected data" from a network of varius sensors. The sensors could be reachable or not.<br>
The only way to know when the sensor is reachable is to wait fo "unexpected data". If I need to send data to a specific sensor<br>
I have to do it immediatly after it send me "unexpected data", wait also 1 second could be sufficient to have the sensor no longer reachable.<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I can't send data to sensor and after do computation because meanwhile could arrive data from another sensor.<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Mainly it is the reason because I think to defer long computation to another thread..<br><div class="HOEnZb"><div class="h5"></div></div></blockquote><div><br></div><div>Okay, so try with threads first, and hope that the scheduler lets your reactor thread work often enough. If that doesn't work, do the computation in a subprocess, and hope that nice works well enough :)<br>

<br></div><div>lvh<br></div></div></div></div>