Re: [Twisted-Python] Help for Twisted + Thread + Message Queue

2013-10-04 Thread Laurens Van Houtven
On Fri, Oct 4, 2013 at 10:59 AM, Stefano Danzi wrote: > Hi Laurens, > many thanks for yours considerations. > > 1) I don't have problems about latency but I can't halt all during the > computation. Why not? > I can defer the computation for minutes if I attach to data the timestamp > related

Re: [Twisted-Python] Help for Twisted + Thread + Message Queue

2013-10-04 Thread Stefano Danzi
Hi Laurens, many thanks for yours considerations. 1) I don't have problems about latency but I can't halt all during the computation. I can defer the computation for minutes if I attach to data the timestamp related to when data arrives. 2) The "monster" machine that have to do all is an embedd

Re: [Twisted-Python] Help for Twisted + Thread + Message Queue

2013-10-04 Thread Laurens Van Houtven
Hi Stefano, It's probably a good idea to avoid thinking in threads until they come up as a potential solution. Some questions: 1) What are the latency requirements? Is it okay for everything else to halt while you do that computation? What are the latency requirements for the computation? Is th

Re: [Twisted-Python] Help for Twisted + Thread + Message Queue

2013-10-03 Thread Stefano Danzi
Hi... Thanks for reply. I know SSCCE But I have not code yet. I'm doing some investigation to understand if it is the right way or if twisted has a better standard flow for a similar problem. I will try to write something exar...@twistedmatrix.com ha scritto: >On 04:57 pm, s.da...@ha

Re: [Twisted-Python] Help for Twisted + Thread + Message Queue

2013-10-03 Thread exarkun
On 04:57 pm, s.da...@hawai.it wrote: Hi!! I have to write a little python program to manage a serial port radio modem. I have to send some AT commands and read resposes. This is not a problem, twisted examples are enough. ...but I have a situation that makes things complicated: Anytime the

[Twisted-Python] Help for Twisted + Thread + Message Queue

2013-10-03 Thread Stefano Danzi
Hi!! I have to write a little python program to manage a serial port radio modem. I have to send some AT commands and read resposes. This is not a problem, twisted examples are enough. ...but I have a situation that makes things complicated: Anytime the modem can send back to serial port a line