Results 1 to 2 of 2

Thread: Priority Queues!!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Posts
    117

    Priority Queues!!!

    How do i add an elemnt with a given priority into a sorted priority queue?

    Help!!!


  2. #2
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Hmmm... Didn't know there were priority queues. After checking, however, it looks like to solve your problem, you need to issue a send command with the appropriate arguments. There are four different methods called send and two of them allow you to assign a priority.

    I'd try this one:
    send(Message message, int deliveryMode, int priority, long timeToLive)

    cudabean

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width