File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Looking for simple Round robin example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Looking for simple Round robin example" Watch "Looking for simple Round robin example" New topic

Looking for simple Round robin example

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
i have problem to find "Simple' example source code to understand the round robin algorithm
can some one please point me to some info and simple java code implementation of round robin?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
"Round Robin" usually means just to step round a list of objects.

Imagine a group of people sitting in a circle and passing someting between them. The item passes from one person to another round the circle, potentially forever.

As a code example, try this:

In this case I am using an iterator to step through a list, and starting again when I reach the end.

Does that make any sense?

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Ramesh Sunkara
Ranch Hand

Joined: Mar 01, 2010
Posts: 78
hi Frank

Your post is very useful for me thanks for your help
naniigadu pokiri

Joined: Mar 24, 2010
Posts: 8
Hi Frank,

You example gives us everything to understand,

I agree. Here's the link:
subject: Looking for simple Round robin example
Similar Threads
Question about Round Robin.
Types of Multi Threading !!
Round robin Algorithm sample code
Round-Robin load balancing
Need Thread Handling Algorithm