Re: Help using Thread (or other method)

2016-02-08 Thread Chris Angelico
On Tue, Feb 9, 2016 at 7:59 AM, Brendan Simon (eTRIX) wrote: > My application mainloop (not the threads) needs to be high priority and > always process as soon as it gets an interrupt. Is using select a good > way of doing this? How can I ensure that no other threads are utilizing > the CPU, etc

Re: Help using Thread (or other method)

2016-02-08 Thread Marko Rauhamaa
"Brendan Simon (eTRIX)" : > Is using `select` here redundant? Yes, if you go the thread way, select() is usually redundant and just gets in the way. > Does readline block until it sees an end-of-line char? i.e. does it > only wake up the thread when it has a _complete string_ or a timeout > of 0

Help using Thread (or other method)

2016-02-08 Thread Brendan Simon (eTRIX)
Hi. Need some urgent help. I have a python app that uses `select` to wait for data from an arm embedded linux kernel interrupt (every second). The mainloop of the app then grabs data from some memory mapped area, processes it and then does a http post to a server. The problem is the http post c