Re: [riot-devel] Question about RIOT/tests/thread_msg

2016-04-06 Thread Attilio Dona
Hi Jianwen, thread_msg does a context switch between p3 and p1 because p1 does not have a message queue. The second message from p3 causes p3 to go into a blocked state and give up control otherwise the previous message will be lost. if in p1 a msg_queue is defined: void *thread1(void *arg) {

[riot-devel] Question about RIOT/tests/thread_msg

2016-04-01 Thread OuyangJianwen
Hello, I am a new beginner to learn RIOT. I got some question when I run the "thread_msg" on board "SAMR21-xpro". For the thread1, thread2 and thread3, they have the same priority. so when the thread3 is running, how can scheduler switch to the thread1. I saw these in the API: "In case of equa