0
\$\begingroup\$

I have a Timer Interrupt Routine which runs periodically (1000/sec). I plan on using mbed's TCPSocket to receive incoming messages. For obvious reasons, this should not block.

It is essential that Timer Interrupt Routine takes priority over the TCPSocket Callback. How can I ensure this?

I suspect that this won't be a problem if the time taken to receive + time taken to run timer interrupt routine is less than 1/1000th sec. Is this correct?

I realise it's hard to estimate, but considering each "message" contains only 12 bytes, approximately how long would recv() take to transfer the data into a buffer? Microseconds?

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.