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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:03:09+00:00 2026-05-12T10:03:09+00:00

I am planning to use the State Machine WorkFlow of Windows Workflows. The state

  • 0

I am planning to use the State Machine WorkFlow of Windows Workflows.

The state machine will be receiving events from two separate threads, the state machine of course will both change its state and execute actions based on its current state and the event that came in.

My question is, is the state machine of windows workflow thread safe, meaning that it will guarantee the correct state change when two threads access it at the same time?

  • 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-12T10:03:09+00:00Added an answer on May 12, 2026 at 10:03 am

    Workflow execution follows single-threaded apartment conventions – that is, one particular instance of a workflow can only be executed by one thread at a time within any runtime. This is by design.

    The workflow runtime uses an internal scheduling queue to execute operations for workflow instances, so two threads invoking operations on the same workflow instance will be serialized to the scheduler queue first, then invoked in sequence either by a new thread scheduled by the runtime (default scheduling) or by the thread donated by the calling context for each operation (manual scheduling).

    When using the persistence service, the workflow runtime also ensures that the database version is synchronized as well – another workflow runtime running on another process / machine cannot load the same workflow instance from persistence if it is currently open by another workflow runtime.

    This means that you don’t have to be concerned with thread-safety on code executing within a workflow model (eg you don’t have to lock property setters), and you don’t have to be concerned with race conditions.

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

Sidebar

Related Questions

Am planning to use cookies to communicate between two browser windows. Am wondering if
I’m planning to use the objective-c-sql-query builder from ziminji on an iPhone and iPad
I'm planning to use Django MPTT with a multi-tenant architecture, so there will be
I am planning to use Silverlight control for bing map. It will be used
I was planning to use url routing for a Web Forms application. But, after
I am planning to use jquery in Rails instead of prototype. I am not
I'm planning to use MS entity framework for new web apps (come on EF
We're planning to use standard ASP.NET user authentication for our application. However, by default
I am planning to use P6Spy to intercept database statements within our architecture. However,
I am planning to use SCTP for a embedded Linux project. Anybody has some

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.