Oliver Hahm ff7892e898 [projects test_*]
* fixed some tests
2012-11-07 13:45:25 -05:00

19 lines
366 B
C

#include <stdio.h>
#include <thread.h>
#include <flags.h>
#include <kernel.h>
#define STACK_SIZE (8192)
char t2_stack[STACK_SIZE];
void second_thread(void) {
puts("second thread\n");
}
int main(void)
{
(void) thread_create(t2_stack, STACK_SIZE, PRIORITY_MAIN-1, CREATE_WOUT_YIELD | CREATE_STACKTEST, second_thread, "nr2");
puts("first thread\n");
}