Current Thread Identity R←⎕TID
R
is a simple integer scalar whose value is the number of the current thread.
Examples
⎕TID ⍝ Base thread number
0
⍎&'⎕TID' ⍝ Thread number of async ⍎.
1
R
is a simple integer scalar whose value is the number of the current thread.
⎕TID ⍝ Base thread number
0
⍎&'⎕TID' ⍝ Thread number of async ⍎.
1