I'm calling functions as threads and these threads contain lots of data and I want to free up the memory used by them as soon as they're done with it. Here's the general format I'm using:
t = thread.start()
threads.append(t)
for thread in threads:
thread.join()
Now, the fact that the thread is still referenced by the thread
variable. Does that mean all the variables inside it will be preserved as well?
Is there anything special I need to do to free up the memory used by these threads?
e.g.,
del variable_referencing_data