This question is relates to the another question asked here
. I have used Semaphore to achieve the same.
I dont want to hi jack that posts thats why i am here.
I have confusion for line 22 and 24 in PrintNumbers class. Line 22 seems understande if i dont sleep enough time then lock re-acquires but not sure for line 24. Any idea?