Forums Register Login

PriorityQueue J2SE 5.0

+Pie Number of slices to send: Send
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!
+Pie Number of slices to send: Send
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.
You get good luck from rubbing the belly of a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 440 times.
Similar Threads
J2SE 5.0 and Threads/Synchronization
Interfaces and how would I do this
PriorityQueue Issue
Isn't PriorityQueue a sorted collection?
Persistence in the Enterprise - efficiency
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:42:19.