various applications running concurrently on computer we can implement round robin scheduler using queueqby repeatedly performing the following steps (see figure ) dequeue( service element enqueue(efigure the three iterative steps for using queue to implement round robin scheduler the josephus problem in the children' game "hot potato, group of children sit in circle passing an objectcalled the "potato,around the circle the potato begins with starting child in the circleand the children continue passing the potato until leader rings bellat which point the child holding the potato must leave the game after handing the potato to the next child in the circle after the selected child leavesthe other children close up the circle this process is then continued until there is only one child remainingwho is declared the winner if the leader always uses the strategy of ringing the bell after the potato has been passed timesfor some fixed value kthen determining the winner for given list of children is known as the josephus problem solving the josephus problem using queue we can solve the josephus problem for collection of elements using queueby associating the potato with the element at the front of the queue and storing elements in the queue according to their order around the circle thuspassing the