There are 10 threads wants to call a method method1() from a class. All the 10 hits the methods at the same time . If the method is synchronized then only thread will get the lock and other 9 threads will be placed in waiting state. In case , the first thread completes the execution then it calls notify(). In this scenario, which of the 9 thread get the CPU cycle . Which are the parameter involved in this selection?
Thanks.