Skip to content
Discussion options

You must be logged in to vote

Are the systemCallback() and packetArrived() functions called in different threads?

No, they run on the same thread.
KENS is a multi-threaded program, but the only one thread runs at a time.

In other words, should all of the shared resources below be synchronized?

No, you don't have to do synchronization (mutex, lock, condvar, etc.)

Can this type of problem occur in KENS?

No

TL;DR : Does KENS functions work in blocking (other functions are blocked when systemCallback() is called) or non-blocking way (other functions may interrupt systemCallback())?

The word blocking would be misleading. The functions work in non-preemptive way.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hyn2028
Comment options

Answer selected by hyn2028
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants