Subversion Repositories HelenOS

Rev

Rev 2029 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2029 Rev 2042
Line 183... Line 183...
183
    printf("Creating %d threads... ", 2 * THREADS);
183
    printf("Creating %d threads... ", 2 * THREADS);
184
 
184
 
185
    for (i = 0; i < THREADS; i++) {  
185
    for (i = 0; i < THREADS; i++) {  
186
        thread_t *t;
186
        thread_t *t;
187
       
187
       
188
        if (!(t = thread_create(e, NULL, TASK, 0, "e"))) {
188
        if (!(t = thread_create(e, NULL, TASK, 0, "e", false))) {
189
            printf("could not create thread %d\n", 2 * i);
189
            printf("could not create thread %d\n", 2 * i);
190
            break;
190
            break;
191
        }
191
        }
192
        thread_ready(t);
192
        thread_ready(t);
193
        total++;
193
        total++;
194
       
194
       
195
        if (!(t = thread_create(pi, NULL, TASK, 0, "pi"))) {
195
        if (!(t = thread_create(pi, NULL, TASK, 0, "pi", false))) {
196
            printf("could not create thread %d\n", 2 * i + 1);
196
            printf("could not create thread %d\n", 2 * i + 1);
197
            break;
197
            break;
198
        }
198
        }
199
        thread_ready(t);
199
        thread_ready(t);
200
        total++;
200
        total++;