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 8927245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:10:34+00:00 2026-06-15T08:10:34+00:00

I have a queue contains messages of different counts & I have script to

  • 0

I have a queue contains messages of different counts & I have script to read the queue and process the messages. My problem is: some of the queue has very larger number of messages & it exceeding than an usual. So, to improve the processing I would like to do process the queues which are all having the greater counts. If the queues are having the linear differences(eg: 1000, 1200, 1300, 1800, 1900) I want to process complete queue. If suppose the counts being like (1000, 1200, 1300, 1800, 1900, 4000, 4500, 4900, 5200) – here 4000+ are very larger queues So I want to take only these queues.

I hope some math calculations Standard deviation etc. will help but I have no idea how to approach it.

  • 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-15T08:10:35+00:00Added an answer on June 15, 2026 at 8:10 am

    I would start like that:

    • Take the first number (in this case 1000) and devide every number in your array by this one and save that fraction in accordance to every number.
    • Take the log with the base which you define as being “vastly different” (say 5 or 10) of every of these fractions and save them with accordance to every number.
    • Put all numbers in a group for which the log of the fraction lies between -1 and 1 and remove those numbers from the array of all numbers.
    • Start over with the remaning numbers and continue until you only have 1 (which you would put into a new group) or no numbers left.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple queue implementation that wraps a fixed array. It contains
I have this problem where a system contains nodes (windows services) that push messages
I have a Queue that contains a collection of objects, one of these objects
in my winforms app, I have a Queue which contains objects: Queue<MyObj> _queuedRows =
I have a queue of text messages in Redis. Let's say a message in
We have a Proxy that is taking messages from a JMS queue and sends
I have the logging module MemoryHandler set up to queue debug and error messages
I have created a test service with a method that contains a very long
I have a message queue where i add some emails. I want to extract
I have a class that contains something like this Dictionary<int, Queue<string>> dict and then

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.