Adding a thread to tell about memory usage