Login Or SignUp
Online Knowledge Sharing Platform
Which of the following constructor of class Thread is valid one?
Thread(Runnable threadOb, int priority)
hread(Runnable threadOb, String threadName)
Thread(String threadName, int priority)
Ans: hread(Runnable threadOb, String threadName)
What will happen if two thread of same priority are called to be processed simultaneously?
Any one will be executed first lexographically
Both of them will be executed simultaneously
None of them will be executed
It is dependent on the operating system.
Ans: It is dependent on the operating system.
What is synchronization in reference to a thread?
Itâ€™s a process of handling situations when two or more threads need access to a shared resource.
Its a process by which many thread are able to access same shared resource simultaneously.
Its a process by which a method is able to access many different threads simultaneously.
Its a method that allow to many threads to access any information require.
Ans: Itâ€™s a process of handling situations when two or more threads need access to a shared resource.
What is the default value of priority variable MIN_PRIORITY AND MAX_PRIORITY?
0 & 256
0 & 1
1 & 10
1 & 256
Ans: 1 & 10
Which of these class is used to create servers that listen for either local or remote client programs?