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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:55:39+00:00 2026-05-15T06:55:39+00:00

I have a scenario that I’m trying to turn into a more responsive UI

  • 0

I have a scenario that I’m trying to turn into a more responsive UI by pre-fetching some sub-elements of the results before they’re actually required by the user if possible. I’m unclear on how best to approach the threading, so I’m hoping someone can provide some advice.

Scenario

There is search form (.NET rich client) that enable the user to select an account for a given customer. The user searches for given text to find a collection of customers which are then displayed in a result grid. Then when the user selects a customer, the list of accounts for that customer are searched for and displayed in a second grid for user selection in order to make up the final context (that is an account) to open.

Existing System

I have this all running in a request/response manner using regular background threading to resolve customers and accounts for a customer respectively in direct response to the user selections. The UI is locked/disabled (but responsive) until the accounts are found.

Goal

What I want to achieve is to commence fetching of the accounts for the top N customers before the user has selected them… Where N is the number of items being displayed in the grid.

As the user scrolls the grid, the newly displayed items will be added to the “queue” to be fetched.

Questions

  1. Is the thread pool an appropriate mechanism for managing the threads? If so, can you force just a single queued work item to jump up in priority? – e.g. if the user selects that customer before they have started/finished fetching.
  2. If not, what else should I be doing?
  3. Either way, are you aware of any good blog posts and/or open source projects that exhibit this functionality?
  • 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-05-15T06:55:39+00:00Added an answer on May 15, 2026 at 6:55 am

    Yes, the threadpool is a good choice, maybe behind a Backgroundworker or .NET4’s TaskParallel library.

    But you cannot (should not) ‘bump’ a ThreadPool thread but I don’t think that is going to be useful anyway.

    What you should probably do is to use a thread-safe queue (of the top N items) and use 2+ threads to process the Queue. When an item is selected and not yet being processed you move it up or start a separate thread immediately.

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

Sidebar

Related Questions

I'm trying to write a Cucumber scenario that requires me to have a logged
I have a scenario that my load balancer translates port 80 from outside into
I have a scenario that i want to add some standard properties to my
I have a common scenario that I am looking for some guidance from people
i have some simple Export/Import Scenario that i can't figur out why this not
I have a fairly straight-forward scenario that I am trying to solve but I'm
I have what seems to be a fairly simple scenario that I am trying
Here is the scenario that I have. I have a cvs repository in one
The scenario: we have a web system that automatically generates office 2003 excel files
Scenario: I have a text file that has pipe (as in the | character)

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.