Thread Synchronization is basically suspending (making one thread wait) until the other thread meets a certain condition. Now some of you know the regular Join(), which suspends the calling thread until the called thread meets the condition of finish. But , I would like to take a look at theContinue Reading

The decorator pattern allows behavior to be added to an individual object. Example c#   public abstract class BaseSalad { protected double myPrice; public virtual double GetPrice() { return this.myPrice; } } public abstract class ExtrasDecorator : BaseSalad { protected BaseSalad salad; public ExtrasDecorator(BaseSalad saladToDecorate) { this.salad = saladToDecorate; }Continue Reading