Generation thread was never getting terminated, which resulted in a memory-hogging zombie process graveyard. Remedied by daemonizing the threads and removing their reference (not storing the thread in a variable). Much faster and easier than checking for execution completion and manually terminating the thread.
Generation thread was never getting terminated, which resulted in a memory-hogging zombie process graveyard. Remedied by daemonizing the threads and removing their reference (not storing the thread in a variable). Much faster and easier than checking for execution completion and manually terminating the thread.