What are two possible ways to achieve this goal?

You are designing a Windows Presentation Foundation (WPF) application. The application
calls methods that perform long-running computational tasks. You need to recommend an
approach for ensuring that the application remains responsive while the tasks are executing.
What are two possible ways to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)

You are designing a Windows Presentation Foundation (WPF) application. The application
calls methods that perform long-running computational tasks. You need to recommend an
approach for ensuring that the application remains responsive while the tasks are executing.
What are two possible ways to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)

A.
Use synchronous method calls from a thread other than the thread on which the user
interface runs.

B.
Run the user interface from a new multi-threaded apartment (MTA) thread.

C.
Use synchronous method calls from the user interface thread.

D.
Use asynchronous method calls from the user interface thread.



Leave a Reply 0

Your email address will not be published. Required fields are marked *