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