What's the difference in using runnable and extends in threads?
Answer / Shashwat Gupta
Extending the Thread class creates a new thread by subclassing it, and the subclass must override the run() method to define what the thread should do. Implementing the Runnable interface allows you to create a separate thread of execution without extending the Thread class. The Runnable object's run() method defines the work that needs to be done.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain the reasons of rebooting the system?
How do you kill a process using pid?
Describe the actions taken by thread library to context switch between user level threads?
How do you kill tasks?
What is windows daemon?
What is a p-thread?
Which one is not needed for Multi-program enviornment? 1) virtual memory 2) security 3) time sharing 4) none of the above.
semaphore variable is different from ordinary variable by ?
Explain cannot copy (file name)- access is denied?
What is thread safety? How do you achieve it?
Too many times when I click on a sentence a caption comes on Grr a pop up blocker maybe blockiing--however I have pushed the turn off pop up blocker. This only happens on google it does not happen on att.net
What are three ways in which a thread can enter the waiting state?