Rev 850 | Rev 1104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 850 | Rev 1062 | ||
---|---|---|---|
Line 105... | Line 105... | ||
105 | thread_t *thrd; |
105 | thread_t *thrd; |
106 | 106 | ||
107 | k = random(7) + 1; |
107 | k = random(7) + 1; |
108 | printf("Creating %d consumers\n", k); |
108 | printf("Creating %d consumers\n", k); |
109 | for (i=0; i<k; i++) { |
109 | for (i=0; i<k; i++) { |
110 | thrd = thread_create(consumer, NULL, TASK, 0); |
110 | thrd = thread_create(consumer, NULL, TASK, 0, "consumer"); |
111 | if (thrd) |
111 | if (thrd) |
112 | thread_ready(thrd); |
112 | thread_ready(thrd); |
113 | else |
113 | else |
114 | failed(); |
114 | failed(); |
115 | } |
115 | } |