InterviewSolution
| 1. |
What Is Synchronization In Respect To Multi-threading In C#? |
|
Answer» With respect to multi-threading, synchronization is the CAPABILITY to control the access of multiple threads to shared RESOURCES. WITHOUT synchronization, it is possible for one Java thread to modify a shared VARIABLE while another thread is in the process of USING or updating same shared variable. This usually leads to erroneous behavior or program. With respect to multi-threading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one Java thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to erroneous behavior or program. |
|