Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:35:50+00:00 2026-06-13T03:35:50+00:00

I was working on a project and ran into some issues which i dont

  • 0

I was working on a project and ran into some issues which i dont know what would be best. What I want to do is have 4 queue running each queue has a priority to it so each one runs for its predetermined amount of time in a round robin format and was thinking of using the Priority Queue for each queue then I found in the Java api that a linked list is also a queue (if im reading that right) which is a FIFO queue.
The main goal of the project is to take a “process” and then assign it a priority and let this process run in one of the queue then re-assets its priority and either change the queue its in or leave it where it is.
Which would be a better approach the linked list or the priority queue?
Thanks for any input on this

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:35:51+00:00Added an answer on June 13, 2026 at 3:35 am

    You can always implement the Java Collection Library’s LinkedList and tweak some methods to turn it into a priority queue. Bam–best of both worlds.

    A way to modify it to fit your project would be to overload the add() method to include a priority parameter. Although a queue is traditionally FIFO, the LinkedList has a removeFirst() and a removeLast() function (even a “remove at”–remove(int index)). So, you have all the tools you need with the library class. I assume this is for a school project, so it’s a nice way to show off an understanding of OOP inheritance also.

    Another method is to just have a ‘LinkedList’ of a “Process” class that you’ll define with an int priority property. That way, you can have some sort of process manager that will manipulate the LinkedList of Process objects by peering through each object’s priority property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on project and ran into an issue. Now I want to
I'm working on a little project for fun and ran into some trouble trying
I'm refactoring some code in a project I'm working on and I ran into
I am working on a blackberry project and ran into some problems with the
while working on a school project i ran into a problem using javascript to
Just started working with android and ran into a small problem. I am have
When I was working on a little project I ran into a delema I
I'm working on a project for a client and ran into an issue when
I was working on a c# project using a DataGridView and ran into an
I am working on Project Euler and ran into an issue. I am unable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.