nerdexam
Microsoft

70-518 · Question #178

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 interface 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 interface
  • 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

(20 responses)
  • A
    80% (16)
  • B
    15% (3)
  • C
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice