What is the name of the method used to schedule a thread for execution? sleep(); init(); start(); run(); resume(); continue?
Answers
Answered by
3
The start() method causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.
THAT IS WHY THE ANSWER IS START
THAT IS WHY THE ANSWER IS START
Answered by
0
The run() method is used to schedule a thread for execution.
Explanation:
- The start() function is a built-in method of the Thread class in Python's threading module.
- It is used to begin the activity of a thread. Internally, this method invokes the run() function, which subsequently performs the target method.
- For each thread, this procedure can only be invoked once.
- When the run() method of a Thread object is called directly, the run() method's instructions are performed by the current thread rather than the newly generated thread.
#SPJ2
Similar questions