Subversion Repositories HelenOS

Rev

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

Rev 2029 Rev 2042
Line 119... Line 119...
119
    printf("Creating %d threads... ", 2 * THREADS);
119
    printf("Creating %d threads... ", 2 * THREADS);
120
 
120
 
121
    for (i = 0; i < THREADS; i++) {
121
    for (i = 0; i < THREADS; i++) {
122
        thread_t *t;
122
        thread_t *t;
123
       
123
       
124
        if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1"))) {
124
        if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1", false))) {
125
            printf("could not create thread %d\n", 2 * i);
125
            printf("could not create thread %d\n", 2 * i);
126
            break;
126
            break;
127
        }
127
        }
128
        thread_ready(t);
128
        thread_ready(t);
129
        total++;
129
        total++;
130
       
130
       
131
        if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2"))) {
131
        if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {
132
            printf("could not create thread %d\n", 2 * i + 1);
132
            printf("could not create thread %d\n", 2 * i + 1);
133
            break;
133
            break;
134
        }
134
        }
135
        thread_ready(t);
135
        thread_ready(t);
136
        total++;
136
        total++;