In reply to dave_59:
Fine but as of now according to my knowledge and the experiment which I have gone through by using different tools which are present in Eda playground I got the above solution as threds without control were executed sequentially.
Hi Dave,
Apart from the semaphore concept can you kindly help me how the code is executing which is in the first chat of this conversation.
Thanks and Regards,
Sriram