Added 'create_thread' function to enable thread creation after a exit.