Microsoft
70-518 · Question #67
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…
The correct answer is A. Use synchronous method calls from a thread other than the thread on which the user D. Use asynchronous method calls from the user interface thread. See the full explanation below for the reasoning.
Question
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.)
Options
- AUse synchronous method calls from a thread other than the thread on which the user
- BRun the user interface from a new multi-threaded apartment (MTA) thread.
- CUse synchronous method calls from the user interface thread.
- DUse asynchronous method calls from the user interface thread.
How the community answered
(27 responses)- A78% (21)
- B7% (2)
- C15% (4)
Community Discussion
No community discussion yet for this question.