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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:45:08+00:00 2026-05-16T07:45:08+00:00

I have some asynchronous operations being performed on the main thread of my application.

  • 0

I have some asynchronous operations being performed on the main thread of my application. I need a worker thread to poll the main thread periodically and check a value on the main thread.

How can I do this? Can I raise an event on the worker thread that the main thread is listening to? Bidirectional communication.

Thanks..

  • 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-16T07:45:09+00:00Added an answer on May 16, 2026 at 7:45 am

    Another more “manual” way to accomplish what you’re asking for here. Have the main thread check the value of interest and then send a reset event to the worker thread:

    1. Look at ManualResetEvent (and AutoResetEvent, depending on your needs) in the threading libraries. These are very simple down-and-dirty mechanisms for signalling between a worker thread and the main thread.

    2. Create a Timer/callback on the main thread that checks the value at a reasonable period. If the desired value is evaluated to true, set the event which sends a signal down to the worker thread.

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

Sidebar

Related Questions

I have a controller class that uses asynchronous calls to perform some network operations.
I have an application that uses Task (TPL) objects for asynchronous execution. The main
I have a one main Workflow which calls several activities asynchronously. Some of the
I have some data loaded as a np.ndarray and need to convert it to
We have an ASP.Net application that provides administrators to work with and perform operations
I have Java servlet-based web applications. I would like to implement some operations in
For instance... if i have a method that performs some asynchronous operation and i
I have some simple questions, I have a client-server application and data sent on
I would appreciate some guidance on modelling services and operations in WCF. I have
I have to write some information to SQL Server from a web application. But

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.