Changeset 86d05fae in mainline for init/init.c
- Timestamp:
- 2006-03-24T11:05:41Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f2c821
- Parents:
- a71d9af9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
ra71d9af9 r86d05fae 275 275 version_print(); 276 276 277 / * test_printf(); */277 // test_printf(); 278 278 // test_ping(); 279 279 // test_async_ipc(); … … 289 289 printf("Futex failed.\n"); 290 290 291 if ((tid = thread_create(utest, NULL, "utest") != -1)) { 291 if (futex_down(&ftx) < 0) 292 printf("Futex failed.\n"); 293 294 if ((tid = thread_create(utest, NULL, "utest")) != -1) { 292 295 printf("Created thread tid=%d\n", tid); 293 296 } 294 297 295 if (futex_down(&ftx) < 0) 296 printf("Futex failed.\n"); 297 298 if ((tid = thread_create(utest, NULL, "utest") != -1)) { 298 if ((tid = thread_create(utest, NULL, "utest")) != -1) { 299 299 printf("Created thread tid=%d\n", tid); 300 300 } … … 302 302 int i; 303 303 304 for (i = 0; i < 10000000; i++)304 for (i = 0; i < 50000000; i++) 305 305 ; 306 306 … … 309 309 310 310 ptid = psthread_create(ptest, NULL); 311 printf(" Main thread-1\n");312 ps_preempt(); 313 printf(" Main thread-2\n");311 printf("main thread-1\n"); 312 ps_preempt(); 313 printf("main thread-2\n"); 314 314 ps_preempt(); 315 315 printf("main thread-3\n");
Note:
See TracChangeset
for help on using the changeset viewer.