This allow main thread to terminate without any error when each car thread has terminated. It's more accurate, because otherwise the attendant will wait forever and block the program.
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com> Co-authored-by: Romain CLEMENT <rc2301@orange.fr>