View Single Post
  #2 (permalink)  
Old 05-10-2008, 10:05 AM
ram101 ram101 is offline
Senior Member
 
Join Date: Jun 2007
Posts: 260
Default

1.With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors.

2. The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance..the only interface can help.
Reply With Quote