Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

priority scheduler

Thread view: 
NOUR - 14 Mar 2007 09:48 GMT
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.
Daniel Pitts - 14 Mar 2007 22:43 GMT
> hi,
> I hope this is the right place to post this.......
[quoted text clipped - 7 lines]
> 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.
NOUR - 15 Mar 2007 17:06 GMT
On Mar 14, 11:43 pm, "Daniel Pitts" <googlegrou...@coloraura.com>
wrote:

> > hi,
> > I hope this is the right place to post this.......
[quoted text clipped - 13 lines]
> Hope this helps,
> Daniel.

thanks I think I will use it in my program


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.