I have a C# (.NET 4), GUI (WPF) program that uses BackgroundWorker (that calls a "Parallel.For" in it)
and i noticed that the GUI thread is always freezing so that the cores can work on the o开发者_JS百科ther threads.
The GUI Thread has no tasks to perform so that's not the reason I'm experiencing slow GUI.
Thank you
If the UI thread is executing the Parallel.For it will block until all parallel thread have finished their work!
精彩评论