This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

LinkInterrupt

LinkInterrupt[link]
sends an interrupt to the program at the other end of the specified MathLink connection.
  • It is up to the external program to determine how it will handle the interrupt.
  • External programs created from MathLink templates will by default set the global variable if they receive an abort.
Launch a subsidiary Mathematica kernel process:
Read the first packet:
Send an infinite loop program:
Use LinkReadyQ to check whether the program has finished:
Send an interrupt:
The process has stopped with an interrupt menu:
Close the link:
Launch a subsidiary Mathematica kernel process:
In[1]:=
Click for copyable input
Out[1]=
Read the first packet:
In[2]:=
Click for copyable input
Out[2]=
Send an infinite loop program:
In[3]:=
Click for copyable input
Use LinkReadyQ to check whether the program has finished:
In[4]:=
Click for copyable input
Out[4]=
Send an interrupt:
In[5]:=
Click for copyable input
The process has stopped with an interrupt menu:
In[6]:=
Click for copyable input
Out[6]=
Close the link:
In[7]:=
Click for copyable input
New in 3