Background thread die off when the main thread is killed while foreground thread continue irrespective if the main thread dies or exists.
Below is a simple video which demonstrates what is threading and difference between background and foreground thread.
Asked In: Many Interviews |
Alert Moderator