I am creating a function that creates threads.
if I recall the function running threads should be terminated.
and new threads should be created.