PrepAway - Latest Free Exam Questions & Answers

Tag: enumeration site:aiotestking com

What should you do?

Domain.com has asked you to create a multi-threaded application, which executes a critical database backup operation on an hourly basis.
You define this operation with the following code:
public void BackupDB () {
//Implementation code
}
You then create a Thread object for the purpose of invoking this method.
You need to ensure that the thread is scheduled for execution before any other thread at runtime.
What should you do?