[NSWI004] Assignment 03: Disposing threads
Vojtech Horky
horky at d3s.mff.cuni.cz
Sat Nov 23 17:12:45 CET 2019
Hello.
Dne 23. 11. 19 v 13:56 Richard Hladík napsal(a):
> do we have to / are we allowed to dispose of finished threads at some
> point? Looking at the pthreads documentation for inspiration, the thread
> handle is considered invalidated after caling pthread_join. Can we
> assume something similar, or does the thread handle have to remain valid
Yes, that is a reasonable approach.
The tests do not check this explicitly but since there is no other API
for thread clean-up, this is the best place to do it.
- VH
> for the whole time?
>
> Thanks
> Richard Hladík
> _______________________________________________
> NSWI004 mailing list
> NSWI004 at d3s.mff.cuni.cz
> https://d3s.mff.cuni.cz/mailman/listinfo/nswi004
>
More information about the NSWI004
mailing list