Main Site Documentation

Threads and interrupts


#1

Since I mentioned that I am also working with a Parallax Propeller, I completely put out of mind the use of interrupts. So, as it pertains to a FEZ Panda II, when do you use an interrupt, and when do you use a thread? The question is posed in a rather broad manner, since I am looking for all the possibilities.

Thanks


#2

You are comparing apples to oranges. Or I am not understanding your question.


#3

this is a simple question which is difficult to answer.

for example, you can detect a button depression with a interrupt handler or with a polling thread. when would you use each?

from experience, I know when to use each. but it is very difficult to simply state my decision methodology.

it basically has to do with context retention. a thread will sometimes help avoid the use of a complex state machine.