You create Microsoft Windows-based applications. You are designing a component that will draw a series of graphics based on an interactive user input. You need to ensure that the user can use the input without waiting for the graphics to be drawn. What should you do?
A.
Design the component as a single-threaded component.
B.
Design the component as a single-threaded apartment component.
C.
Design the component as a multi-threaded component that has a thread for user input and a thread for graphics. Grant the user input thread a higher priority than the graphics thread.
D.
Design the component as a multi-threaded component that has a thread for user input and a thread for graphics. Grant the user input thread a lower priority than the graphics thread.