Rev 2028 | Rev 2050 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2028 | Rev 2042 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | thread_t *thrd; |
91 | thread_t *thrd; |
92 | 92 | ||
93 | k = random(7) + 1; |
93 | k = random(7) + 1; |
94 | printf("Creating %d consumers\n", k); |
94 | printf("Creating %d consumers\n", k); |
95 | for (i = 0; i < k; i++) { |
95 | for (i = 0; i < k; i++) { |
96 | thrd = thread_create(consumer, NULL, TASK, 0, "consumer"); |
96 | thrd = thread_create(consumer, NULL, TASK, 0, "consumer", false); |
97 | if (thrd) |
97 | if (thrd) |
98 | thread_ready(thrd); |
98 | thread_ready(thrd); |
99 | else |
99 | else |
100 | printf("Error creating thread\n"); |
100 | printf("Error creating thread\n"); |
101 | } |
101 | } |