Which method registers a thread in a thread scheduler?

  1. run();

  2. construct();

  3. start();

  4. register();


Correct Option: C

AI Explanation

To answer this question, you need to understand how threads are registered in a thread scheduler.

Option A) run() - This option is incorrect because the run() method is responsible for the code that will be executed when the thread is started, but it does not register the thread in the thread scheduler.

Option B) construct() - This option is incorrect because there is no specific method named construct() for registering a thread in a thread scheduler.

Option C) start() - This option is correct because the start() method is used to register a thread in a thread scheduler. When the start() method is called, the thread is added to the thread scheduler's queue and will be executed by the scheduler when its turn comes.

Option D) register() - This option is incorrect because there is no specific method named register() for registering a thread in a thread scheduler.

The correct answer is C) start(). This option is correct because the start() method is used to register a thread in a thread scheduler.

Find more quizzes: