Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 622 → Rev 623

/kernel/trunk/test/thread/thread1/test.c
37,11 → 37,8
 
#include <arch.h>
 
 
 
#define THREADS 5
 
 
static void thread(void *data)
{
while(1)
51,21 → 48,15
}
}
 
 
 
void test(void)
{
thread_t *t;
int i;
 
 
 
for (i=0; i<THREADS; i++)
{
for (i=0; i<THREADS; i++) {
if (!(t = thread_create(thread, NULL, TASK, 0)))
panic("could not create thread\n");
thread_ready(t);
}
printf("ok\n");
}