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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:27:26+00:00 2026-05-20T15:27:26+00:00

In Silverlight, to marshall a call to the UI thread we are supposed to

  • 0

In Silverlight, to marshall a call to the UI thread we are supposed to use this.Dispatcher.BeginInvoke((ThreadStart)delegate(){}).

My question is if multiple threads call a function which does this then do those calls get queued up and execute one after another? If yes, then can I safely assume that even though the function is getting called from multiple threads, the code inside the this.Dispatcher.BeginInvoke((ThreadStart)delegate(){} ); is thread safe ?

  • 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-20T15:27:27+00:00Added an answer on May 20, 2026 at 3:27 pm

    Code is thread-safe when it has no state, doesn’t modify state that can be shared across thread boundaries or modifies state in a controlled manner that all users of that state share in order to ensure thread safety (such as locks).

    Therefore, there is no guarantee of thread safety from Dispatcher.BeginInvoke. That said, it is guaranteed that the delegates will all execute on the same thread (the UI thread) so you can assume that the delegates will not run concurrently. This does not mean they are inherently thread-safe – that depends on what you do in those delegates – but if you don’t spin or interact with other threads from those delegates or methods called by those delegates, you can assume thread-safety.

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

Sidebar

Related Questions

Silverlight newbie here, so I apologize if this question isn't even worded correctly. I
Silverlight newbie question: I've got a small Silverlight application with the following XAML snippet:
Silverlight windows phone 7. Listbox with selectionmode multiple. How to make certain items selected
Silverlight does not feature DataTriggers, so in this case... what might be the best
In Silverlight, the VideoSink.OnSample method is used to get raw webcam data. The function
Silverlight renders few Chinese characters as Bold in a text box. This textbox has
In Silverlight XAML, I can give a control a name like this: <Button Name=MyButton
Silverlight can use WCF, Web Services, REST based services, .NET RIA Services, but it
Silverlight 4, but I'm not sure if this applys to WPF also. This is
Silverlight filter/class for cloud generation? Some HLSL or just C# class for generating clouds?

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.