PrepAway - Latest Free Exam Questions & Answers

What should you do?

A thread in an application must perform an action no more than once every second. You need to ensure that the thread uses the minimum amount of CPU time. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Call Sleep(1000) inside the thread, and then perform the action.

B.
Call CeSetThreadPriority(hTHREAD,0), and then perform the action.

C.
Call GetTickCount inside the thread in a loop for one second, and then perform the action.

D.
Call SetThreadPriority(hTHREAD,THREAD_PRIORITY_LOWEST), and then perform the action.


Leave a Reply