what is Thread priority?

Answer Posted / mamatha

Thread scheduler uses the thread priorities in the form of integer value to each of its thread to determine the execution schedule of threads .

Thread gets the ready-to-run state according to their priorities.

Priorities are integer values from 1 (lowest priority given by the constant Thread.MIN_PRIORITY) to 10 (highest priority given by the constant Thread.MAX_PRIORITY).

The default priority is 5(Thread.NORM_PRIORITY).

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

2239


What is t in parametric equations?

545


What is static in java?

559


Can we have a try block without catch block?

569


Which non-unicode letter characters may be used as the first character of an identifier?

597






What is the final access modifier in java?

617


What is the flag in java?

612


What is the major difference between linkedlist and arraylist?

510


What is tcp and udp?

602


What is keyword auto for?

639


What is annotation in java?

575


What is difference between synchronize and concurrent collection in java?

520


what happens when a thread cannot acquire a lock on an object? : Java thread

538


What does || || mean in math?

515


Can we call the run() method instead of start()?

590