Changeset 624 for trunk/user
- Timestamp:
- Mar 12, 2019, 1:37:38 PM (6 years ago)
- Location:
- trunk/user
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/user/ksh/ksh.c
r623 r624 14 14 // 15 15 // The children processes are created by the <load> command, and are 16 // attached to the same TXT terminal as the KSH process itself.16 // attached to the same TXT terminal as the parent KSH process. 17 17 // A child process can be lauched in foreground or in background: 18 // . when the child process is runningin foreground, the KSH process loses18 // . when the child process is launched in foreground, the KSH process loses 19 19 // the TXT terminal ownership, that is transfered to the child process. 20 // . when the child process is running in background:the KSH process keeps20 // . when the child process is launched in background, the KSH process keeps 21 21 // the TXT terminal ownership. 22 22 // … … 58 58 #define DEBUG_INTER 0 59 59 #define DEBUG_PARSE 0 60 #define DEBUG_CMD_CAT 160 #define DEBUG_CMD_CAT 0 61 61 #define DEBUG_CMD_CP 0 62 62 #define DEBUG_CMD_LOAD 0 -
trunk/user/sort/sort.c
r623 r624 305 305 } 306 306 307 printf("\n \n[sort] main starts / %d threads / %d items / pid %x / cycle %d\n",307 printf("\n[sort] main starts / %d threads / %d items / pid %x / cycle %d\n", 308 308 total_threads, ARRAY_LENGTH, getpid(), (unsigned int)start_cycle ); 309 309 … … 467 467 468 468 // register results to file 469 fprintf( stream , "\n----- %s -----\n" 470 " - sequencial : %d cycles\n" 471 " - parallel : %d cycles\n", 472 name, sequencial, parallel ); 469 int ret = fprintf( stream , "\n----- %s -----\n" 470 " - sequencial : %d cycles\n" 471 " - parallel : %d cycles\n", name, sequencial, parallel ); 472 if( ret < 0 ) 473 { 474 printf("\n[sort error] cannot write to instrumentation file <%s>\n", name ); 475 exit(0); 476 } 473 477 474 478 // close instrumentation file
Note: See TracChangeset
for help on using the changeset viewer.