If a multi threaded Java program has started numerous number
of threads, at any point in time how to know which thread is
currently executing/running ?
Answer Posted / adminraj
Check executing/running current thread by
currentThread() [Method]
public static Thread currentThread()
Find the currently executing thread.
Returns:
the currently executing thread
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of skeleton and stub?
What is data type in computer?
Give us a program to check for parenthesis matching using stack.
Why do you canvas?
What is data member in java?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What are the java ide’s?
Explain wait() method of object class ?
What is thread start?
Differentiate storage classes on the basis of their scope?
What technique is carried out to find out if a particular string is empty?
What are the steps in the jdbc connection?
what is a green thread? : Java thread
why an outer class cannot be declared as private?
What is :: operator in java 8?