Category archives: Code

  • MultiThreading in C#

  • There are two distinct types of multitasking: process-based and thread-based. It is important to understand the difference between the two.  Process is what the operating system uses to facilitate the execution of a program by providing the resources required. Each process has a unique process[...]
  • Breaking Singleton questions you may get in interviews

  • Even though we avoided multiple instance creation of singleton class by using Double checked locking or Eager instance creation, instances can still be created by : – cloning – reflection – Sub-classing singleton class How to avoid Singleton instance creation by cloning ? We can create a copy o[...]
 

Enjoy this blog? Please spread the word :)