完成并修改正确必做题
This commit is contained in:
@@ -31,7 +31,7 @@ void *wokerT3(void *vargp)
|
||||
for(int i=0; i<5; i++)
|
||||
{
|
||||
time_t t = time(NULL);
|
||||
printf("Current time %s\n",ctime(&t));
|
||||
printf("Current time %s",ctime(&t));
|
||||
int sleep_time = rand() % 5 + 1;
|
||||
sleep(sleep_time);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user