[Solved] When will objects allocated on a thread be freed after the thread completes? [closed]


The simple answer is eventually: no sooner, no later.

You have no direct control over when garbage will be collected. Provided the instance has no more references to it, the garbage collector will clean it up at some point.

4

solved When will objects allocated on a thread be freed after the thread completes? [closed]