PrepAway - Latest Free Exam Questions & Answers

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application performs multiple read/write operations to the file system by using asynchronous delegate
invocation.
You discover that the read/write operations are abruptly terminated when the application exits. The files
either remain open or are corrupted.
You need to ensure the application completes all read/write operations successfully before it exits.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Use the LOCK statement code block in the delegate to hold resources until the thread completes.

B.
Call the Sleep() method in the delegate to allow more time for the operations to complete.

C.
Remove asynchronous delegation invocation of the read/write operations. Launch a thread by using
the System.Threading.Thread class, and then set the IsBackground property to True.

D.
Remove asynchronous delegation invocation of the read/write operations. Launch a thread by using
the System.Threading.Thread class, and then set the IsBackground property to False.


Leave a Reply