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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:42:58+00:00 2026-06-09T17:42:58+00:00

i have a sequence of 3 time consuming functions, i would like to execute

  • 0

i have a sequence of 3 time consuming functions, i would like to execute them in background worker or whatever else tool, my problem is that each function should wait for the precedent function to complete, so this is my pseudo-code :

open_session() // during the execution of this function i like to display a loading-window 

open_session() //this function opens a process another windows app , while opening this app i would like to keep the current app responsive.

close_session()// during the execution of this function i like to display a loading-window 

i imagined to do this using background worker, but do function are asynchrounous.

Any help please

  • 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-09T17:43:00+00:00Added an answer on June 9, 2026 at 5:43 pm

    Just start each consecutive worker in the RunWorkerCompleted event handler of the previous one…

    Adressing the downvotes: note that it’s a possibility. Whether or not it’s a good choice, obviously depends on the context, like always. I don’t believe in golden rules such as “it’s better to just only use one BGW”. I can imagine plenty of circumstances, under which using a single BW for all tasks wouldn’t simplify matters (for example, if each operation requires ProgressChanged to be handled differently).

    The OP asked about multiple background workers, not having given enough context to judge what approach is best – for all I know, he could be just theoretically wondering how one can “chain” BWs, in order to gain a better understanding of how BW works.

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

Sidebar

Related Questions

Background: I have a sequence of contiguous, time-stamped data. The data-sequence has holes in
I have a sequence which varies in length e.g. something like: items <- 1:4
I have a sequence like [0, 1, 0, 1, 0, 1, 0] and I
suppose i have a sequence, called TEST_SEQ what would be the correct way of
I have a strange problem with IE. I have a sequence of forms on
I have a sequence of images needed to display in a short time (PNG
I have a really weird problem with Xcode 3.2.5 In a normal code sequence
I have a video sequence that I'd like to skip to specific frames at
I have a simple code to show a time sequence in my GUI by
I have a grid 4x4 and I'd like to show sequence of colours such

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.