views:

50

answers:

1

can anyone please explain the concept of dispatcher, is it one dispatcher per thread or anything else

+1  A: 

If you're asking in reference to c#, a dispatcher...

...maintains a prioritized queue of work items for a specific thread.

When a Dispatcher is created on a thread, it becomes the only Dispatcher that can be associated with the thread, even if the Dispatcher is shut down.

..so yes, one per thread.

Jon Cage
i get a dispatcher property for a button "btnTest.Dispatcher" what does this mean
taher chhabrawala
it means the button is derived from a `System.Windows.Threading.DispatcherObject`. Look at the Inheritance heirarchy here: http://msdn.microsoft.com/en-us/library/ms609089%28v=VS.85%29.aspx
Jon Cage