Lab1 - Task 2 - Sleep

Asfaloth
Windoof-User
Windoof-User
Beiträge: 27
Registriert: 7. Nov 2012 10:36

Lab1 - Task 2 - Sleep

Beitrag von Asfaloth » 27. Okt 2015 18:04

Hi,

on the first task one should add a usleep after the fork. Where should the sleep be in the task 2? Before or after the pthread_create?

Thanks!

schwahn
Erstie
Erstie
Beiträge: 16
Registriert: 20. Okt 2015 11:36

Re: Lab1 - Task 2 - Sleep

Beitrag von schwahn » 28. Okt 2015 10:25

the sleep should be added at an equivalent place, i.e., both the original and the newly created thread should execute the sleep.

Antworten

Zurück zu „Archiv“