329,6 → 329,7 |
|
int err; |
HARD_TASK_MODEL ht; |
NRT_TASK_MODEL nrt; |
struct timespec endtimer; |
|
pthread_mutex_init(&mux,NULL); |
335,18 → 336,20 |
|
srand(kern_gettime(NULL)); |
create(); |
|
nrt_task_default_model(nrt); |
|
kern_gettime(&endtimer); |
endtimer.tv_sec += 20; |
kern_event_post(&endtimer, (void (*)(void *))(sys_end), NULL); |
|
err = fsf_create_thread(server1,&j1,NULL,star,NULL,NULL); |
err = fsf_create_thread(server1,&j1,NULL,star,NULL,&nrt); |
kern_printf("(%d)",err); |
|
err = fsf_create_thread(server2,&j2,NULL,star,NULL,NULL); |
err = fsf_create_thread(server2,&j2,NULL,star,NULL,&nrt); |
kern_printf("(%d)",err); |
|
err = fsf_create_thread(server3,&j3,NULL,star,NULL,NULL); |
err = fsf_create_thread(server3,&j3,NULL,star,NULL,&nrt); |
kern_printf("(%d)",err); |
|
hard_task_default_model(ht); |
361,13 → 364,13 |
err = fsf_create_thread(server4,&j4,NULL,periodic_star,NULL,&ht); |
kern_printf("(%d)",err); |
*/ |
err = fsf_create_thread(server1,&j1,NULL,star,NULL,NULL); |
err = fsf_create_thread(server1,&j1,NULL,star,NULL,&nrt); |
kern_printf("(%d)",err); |
|
err = fsf_create_thread(server2,&j2,NULL,star,NULL,NULL); |
err = fsf_create_thread(server2,&j2,NULL,star,NULL,&nrt); |
kern_printf("(%d)",err); |
|
err = fsf_create_thread(server3,&j3,NULL,star,NULL,NULL); |
err = fsf_create_thread(server3,&j3,NULL,star,NULL,&nrt); |
kern_printf("(%d)",err); |
|
return 0; |