priority scheduler

N

NOUR

hi,
I hope this is the right place to post this.......
any way I am supposed to write a priority scheduler in java but I
have a problem in selecting the next thread to resume according to its
priority (note: my programs priorities are diffrent from
java.lang.Thread priorities )
I've serched for pseudo code for a priority scheduler but I found
nothing useful.
please help if you know where to find a pseudo code code or a simple
implementation for this.
thanks.
 
D

Daniel Pitts

hi,
I hope this is the right place to post this.......
any way I am supposed to write a priority scheduler in java but I
have a problem in selecting the next thread to resume according to its
priority (note: my programs priorities are diffrent from
java.lang.Thread priorities )
I've serched for pseudo code for a priority scheduler but I found
nothing useful.
please help if you know where to find a pseudo code code or a simple
implementation for this.
thanks.

Java has a built in priority queue:
<http://java.sun.com/j2se/1.5.0/docs/api/java/util/PriorityQueue.html>

Hope this helps,
Daniel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top