Object can be created using Remoting in two different ways , they are : 1. SAO (Server Activated Objects) It is also called as Well-Known call mode. It is stateless. 2. CAO (Client Activated Objects) It has state.
CAS(Code Access Security) belongs to .NET Security Model and determines whether a piece of code is allowed to run or not and if allowed to run then what resources it can access.
1. Mark all the managed memory as garbage 2. Look for used memory blocks, and mark them as valid memory 3. Discard all unused memory blocks 4. Compact the heap