I wonder what would happen when I create a joinable thread for writing some big data to "disk". Now, the docs say I can do so by using POSIX threads. Nice! But: Another guy at Apple said, that an app has like 5 seconds or so to quit when the user presses the home button. So for my understanding a "real" nondetached thread has the sense to prevent data corruption, but when iPhone OS just kills the process after 5 seconds anyways that would not make much sense I guess.
But: Without nondetached threads, would the app quit immediately rather than getting killed after 5 seconds? Or is that just a bad myth, and a POSIX joinable thread would make sure the data gets processed completely before the app quits?
Don't worry, I don't plan to make something that would prevent the user to not be able for shutting off the app. I just want to get this right.