∇BackgroundTask[⎕]∇
[0] BackgroundTask;mat
[1] mat←50 50⍴?2500⍴100
∇ExecTask[⎕]∇
[0] ExecTask;⎕USING;action;task
[1]
[2] ⎕USING,←'System.Threading.Tasks,mscorlib.dll' 'System,mscorlib.dll'
[3] action←⎕NEW Action(⎕OR'BackgroundTask')
[4] task←⎕NEW Task(action)
[5] task.Start ⍬
Each time 'ExecTask' is executed there is a new thread that is created (but not all the time and don't know why. Thread reuse ?). My question is where to put 2501⌶0 to discard the new thread on exit.
Thanks in advance