Running a continuous Python process and memory management
<p>My current assignment is to run a Python program continuously, it is going to be a cron job kind of thing, internally it will have objects which is going to be updated every 24hrs and then basically write the details in a file. </p>

<p>Some advice required about the memory management</p>

<ol>
<li><p>Should I use single process or multi threaded. As there is a scope in the program which can be done parallel. As it is going to run continuously some clarification would be required about the memory consumption of these threads also do I need to cleanup the resources of the threads after each execution. Is there any clean up method available for threads in python.</p></li>
<li><p>When I do a object allocation in Python, do I need to think about the destructor as well or Python will do the gc.</p></li>
</ol>

<p>Please share your thoughts on this as well as what would be the best approach.</p>
