I am using the function to get threadNum but, i see that it always gets me 1 though i have setup 5 threads. This is how i have my threads setup. I was expecting it to give me 1,2,3,4,5. Is my understanding right?

![threadSetup](https://i.stack.imgur.com/oRujI.png)

and this is what i see in log.

![threadNumber in log](https://i.stack.imgur.com/aA95K.png)

This is with one loop. I also tried with multiple loops and i see the same result.