Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 823 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 823 Bytes

previous task

Task 3: Multithreading

Threads in RIOT are functions with signature

void *thread_handler(void *arg);

Use thread_create() from thread.h to start it

pid = thread_create(stack, sizeof(stack),
                    THREAD_PRIORITY_MAIN - 1,
                    THREAD_CREATE_STACKTEST,
                    thread_handler,
                    NULL, "thread");

Task 3.1: Start a thread

  • Start the thread "thread" from within main()
  • Run the application on native: make all term
  • Check your output, it should read: I'm in "thread" now

Read the doc

next task