priority scheduler

Discussion in 'Java' started by NOUR, Mar 14, 2007.

  1. NOUR

    NOUR Guest

    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.
    NOUR, Mar 14, 2007
    #1
    1. Advertising

  2. NOUR

    Daniel Pitts Guest

    On Mar 14, 1:48 am, "NOUR" <> wrote:
    > 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.
    Daniel Pitts, Mar 14, 2007
    #2
    1. Advertising

  3. NOUR

    NOUR Guest

    On Mar 14, 11:43 pm, "Daniel Pitts" <>
    wrote:
    > On Mar 14, 1:48 am, "NOUR" <> wrote:
    >
    > > 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.


    thanks I think I will use it in my program
    NOUR, Mar 15, 2007
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Codemonkey
    Replies:
    8
    Views:
    9,523
  2. Alex Wagner

    scheduler

    Alex Wagner, Apr 9, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    504
    Dan Brussee
    Apr 10, 2004
  3. Wayne Wengert

    Looking For A Room Scheduler

    Wayne Wengert, Jun 16, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    394
    =?Utf-8?B?SWFuIExhbmU=?= .enizin.net>
    Jun 17, 2005
  4. =?Utf-8?B?QVZM?=

    job scheduler in .net

    =?Utf-8?B?QVZM?=, Jun 30, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    3,764
    technisient
    Sep 13, 2012
  5. Marcel Müller
    Replies:
    3
    Views:
    553
    Marcel Müller
    Apr 27, 2009
Loading...

Share This Page