• Post Reply Bookmark Topic Watch Topic
  • New Topic

Looking for a Queue data structure which tolerates multiple readers/writers  RSS feed

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm looking for a Queue data structure that can handle
multiple readers/writers. While a strict FIFO property is nice, I suspect
that would limit the concurrency. So I am not too bothered if items in the
queue are NOT strictly read in a FIFO fashion. Perhaps a relaxed
condition: All items in the Queue which were added within 1 minute of each
other SHOULD be read first.

Any suggestions?

Thanks

Pho
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about a ConcurrentLinkedQueue?
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jim. I'll give that a spin.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!