I got this question asked in an interview. I had to create a utility function which cannot be accessed by more than n number of a thread at any point of time. So,if (n+1)th thread requests then it should wait until any of the previous thread completes.I got this question asked in an interview. I ha