Monthly Archives: February 2011

1. Context Switching The processor uses a hardware timer to determine when a timeslice has ended for a given thread. When the hardware timer signals the interrupt, the processor saves all registers for the current thread onto the stack. Then the … Continue reading →

1. The application requests that the user type in a number between 1 and 10. A random number is then generated, and the user is told whether the number they picked matches the random number. using System; class IfTest1App { … Continue reading →

1. An operator is a symbol that indicates an operation to be performed on one or more arguments. The values being operated on are called operands. The most basic C# operators include multiplication (*), division (/), addition and unary plus (+), … Continue reading →

1. When you define an interface and specify that a class is going to make use of that interface in its definition, the class is said to be implementing the interface or inheriting from the interface. In C#, an interface is … Continue reading →