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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T12:20:24+00:00 2026-05-16T12:20:24+00:00

(As justification – I’ve never worked with threads so the description below is just

  • 0

(As justification – I’ve never worked with threads so the description below is just an idea I want you to criticize)

The task overview:
– There is a list of some Objects
– We need to check if the object has been changed in some way
– If it was changed – apply some logic (for example – show notify).

This is how I think it should be implemented:

We create timer, triggered each minute, which traverse the Objects list and find the Objects that needs to be checked. After that we add that Object (or to be specific – some task object, that contains Object and task description: to check if it was updated) to the Queue.

Worker (some thread in thread pool) waits until something is added to the Queue, and after it is happened – it takes the Task and processes it: checks if Object was changed. If so – it adds another task, notification one. And now another worker, that processes notification tasks will handle this task, if necessary.

So, is it totally wrong idea? What can be improved or changed here?

UPD: according to first answer: Object depends on some repote resource, and “change” means that some remote data changed (or changed in some specific manner). So this cannot be solved with INotifyPropertyChanged.

  • 1 1 Answer
  • 3 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-16T12:20:25+00:00Added an answer on May 16, 2026 at 12:20 pm

    If these ‘objects’ are .NET objects why would you poll them? Why not implement something like the INotifyPropertyChanged interface instead and have a proper, immediate notification of changes?

    Otherwise, if they are in fact external objects of some kind that can only be tested by polling, then a timer that fires off an event that then polls each object and Invokes the notification back to the UI thread is probably sufficient, or if you want the timer event to finish quickly (e.g. so it can respond to another event immediately), fire off a Task to go check each object and notify the UI (using an Invoke) if it has changed.

    There’s no need to queue up each individual object and process them separately (is there??), nor any requirement to process them in parallel, so a simple loop over them in the worker thread (or Task) would seem sufficient.

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

Sidebar

Related Questions

Perl is one of the things I never quite had the justification to get
Is there any standard template in XSLT 1.0 available which does justification and pad
Can someone please explain to me the static HashMap#hash(int) method? What's the justification behind
I just bought The Art of Unit Testing from Amazon. I'm pretty serious about
The justification that I've seen for shall we say Bastardizing the Java bytecodes in
A colleague of mine recently stated it is fine for multiple read write threads
I work at a company where some require justification for the use of an
I have an odd question that I have always thought about, but could never
I've been searching for justification as for why you should not call a thread's
I have the following domain classes: Holiday : class Holiday { String justification User

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.