Iterate over running task/threads

is it possible to iterate over all the runnning threds/tasks in julia and stop just some of them ?

Not really. To properly stop a task you should communicate to it (e.g. over a channel) that is should finish and then wait on it to let it cleanly exit.

1 Like

my bad i didn’t explain my self correctly.
Can i see the threads that are running at a given moment in the execution of a julia program ?
Then i just need to pause them for a short amount of time and not completely stop them