Link to home
Start Free TrialLog in
Avatar of dpalyca755
dpalyca755

asked on

queue options

I need a linked list which will be used by 3 runnable threads.
2 will populate it, 1 will poll from it
I plan on implementing this.

List list = Collections.synchronizedList(new LinkedList());

Is this the best/easiest implementation?
Please advise me of my options.
Avatar of dpalyca755
dpalyca755

ASKER

also:  What is a good paradigm for polling the list for data?  timeframe?
SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
What would the benefit of the BlockingQueue vs  LinkBlockingQueue vs SynchronizedList?
They all seem to achieve what I want.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial