• Post Reply Bookmark Topic Watch Topic
  • New Topic

PriorityQueue J2SE 5.0  RSS feed

 
Johnny Belab
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I would like to implement thereadpool where tasks are executed in the order
they appear to thereadpool, not with any priorityvalue.

It PriorityQueue class that comes with J2SE 5.0 that right choice?
Or are there any better choices?

Cheers!
 
Akshay Kiran
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you be more descriptive?
Anyway, it depends on how you implement the PriorityQueue, depending on that we might be able to offer better alternatives or critique it.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!