new threading test

To make it easier to create dynamic threads and keep track of the
threads
Updates the support multithreading