Exit 70-482 Advanced Windows Store App Dev using HTML5 and JavaScript
Question 4 of 5
0% complete
Q4 Single choice

You develop a Windows Store app that allows users to modify images by using filters and image-processing algorithms.

The app must meet the following requirements:

Use a web worker to initiate the image-processing algorithms on a separate thread.
Clean up the web worker after processing the algorithms.

100% Real Q&As | 100% Real Pass

You need to ensure that the web worker releases memory after processing the algorithms.

What should you do?

  • A

    From the calling page, call the postMessage() command with the terminate parameter.

  • B

    From the calling page, call the postMessage() command with the clean parameter.

  • C

    From the web worker, call the close() command.

  • D

    From the calling page, call the postMessage() command with the close parameter.