This will give you a solution to the famous concurrent problem - "Senate Bus Problem". It will also simulate creating random number of buses and riders.