KILL (Statement)


Forcibly terminates a task.


KILL <Program name>


This statement forcibly terminates the task (program) designated by <Program name>. However, it cannot kill a program that contains the statement. If attempted, an error will occur. To forcibly terminate a statement-containing program, use a STOP instruction.



If a task in the process of obtaining an arm semaphore is forcibly terminated and an arm semaphore is obtained by another task, an "Arm semaphore obtaining failure" error may occur. In such a case, a timer should be inserted before another task obtains the arm semaphore.


RUN samp1
'Concurrently runs samp1.
·
·
·
KILL samp1
'Ends samp1.


Top