What is the difference between a detached thread and a daemon thread?

Viewed 18291

I understand that all daemon threads are detached threads, but why are all detached threads not daemon?

Say thread "main" creates thread "A"(non-detached) and thread "A" creates thread "B"(detached). Can thread "A" exit while "B" continues running?

PS: I am asking with reference to pthreads, but please do answer regardless.

2 Answers
Related