How to use threading in java ? Let me ask a question!?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to use threading in java ? Let me ask a question!??

A theme park contains 4 ticket counter each counter has 100 tickets only.. Everyone comes to theme park and give their details for entry.. Each and every one giving their Name, Date of birth, address and mobile number.. I need to display a particular person's details only .. what can I do to solve this question.? I need to use only threading concept to have 400 people details.. I need so more suggestions from you all!!! and it must be coded using Java only

29th Oct 2017, 10:06 AM
Pranesh Palanisamy
Pranesh Palanisamy - avatar
1 Answer
+ 1
I remember solving this kind of problem with semaphors and mutexes in C Language when I was in university. You can implement them in Java. I don't remember the details though.
29th Oct 2017, 10:27 AM
Mert Açıkportalı
Mert Açıkportalı - avatar