nikamanth
nikamanth

Reputation: 145

How to kill threads in Julia?

I am running three processes simultaneously by executing them through an Ipython notebook. I want to know what is the best way to kill any or all of the threads whenever I want. I see that interrupting kernal in the notebook stops just the process 1.

Upvotes: 5

Views: 906

Answers (1)

Nils Gudat
Nils Gudat

Reputation: 13800

From the Julia documentation:

interrupt([pids...])

Interrupt the current executing task on the specified workers. This is equivalent to pressing Ctrl-C on the local machine. If no arguments are given, all workers are interrupted.

Upvotes: 2

Related Questions