rem: t[i] = spawn_thread(counter_thread, "counter", THREAD_MEDIUM_PRIORITY, my_test);
add: t[i] = spawn_thread(counter_thread, "counter", B_NORMAL_PRIORITY, my_test);
context: int main(int argc, char **argv){	thread_id t[THREADS];	sem_id lock;	int i;	int expected = START_VAL, current_val = START_VAL;			printf("OpenBeOS Thread Test - Simple\n"	       "=============================\n");	lock = create_sem(1, "test_lock");		for (i=0;i<THREADS;i++) {				struct the_test *my_test = (struct the_test*)malloc(sizeof(struct the_test));		my_test->the_lock = lock;		my_test->current_val = &current_val;		my_test->thread_mult = i + 1;		t[i] = spawn_thread(counter_thread, "counter", THREAD_MEDIUM_PRIORITY, my_test);		if (t[i] > 0) {			resume_thread(t[i]);			expected *= (i + 1);		}	}		sys_wait_on_thread(t[THREADS - 1], NULL);		printf("Test value = %d vs expected of %d\n", current_val, expected);		delete_sem(lock);		return 0;}