Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 495
nikamanth Avatar asked Oct 31 '22 20:10

nikamanth


1 Answers

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.

like image 62
Nils Gudat Avatar answered Nov 03 '22 00:11

Nils Gudat