Rev 1062 | Rev 1104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1062 | Rev 1077 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | 39 | ||
40 | #define THREADS 5 |
40 | #define THREADS 5 |
41 | 41 | ||
42 | static void threadtest(void *data) |
42 | static void threadtest(void *data) |
43 | { |
43 | { |
44 | while(1) |
44 | while(1) |
45 | { |
45 | { |
- | 46 | while (1) |
|
- | 47 | ; |
|
46 | printf("%d\n",(int)(THREAD->tid)); |
48 | printf("%d\n",(int)(THREAD->tid)); |
47 | scheduler(); |
49 | scheduler(); |
48 | } |
50 | } |
49 | } |
51 | } |
50 | 52 | ||
51 | void test(void) |
53 | void test(void) |
52 | { |
54 | { |
53 | thread_t *t; |
55 | thread_t *t; |