1/42
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Exception
is represented by classes
ApplicationException
These exceptions are user program-generated
SystemException
These exceptions are generated by Common Language Runtime (CLR
System.Exception
is at the top of the standards’ exceptions hierarchy
System.ArithmeticException
Errors in arithmetic or conversion operation will be thrown in this exception
System.OverflowException
When an overflow occurs in a checked operation
System.ArgumentException
Any invalid argument in a method will be thrown in this exception.
System.ArgumentNullException
If there is an unacceptable argument passed to a method,
System.IndexOutOfRangeException
Throw in this exception when attempting to index an array through an index that is either less than zero or greater than the maximum length of index.
System.OutOfMemoryException
If the available memory becomes too low to accommodate a memory allocation request
System.StackOverflowException
is called when the execution stack is exhausted by having too many pending method calls.
System.FormatException
This exception checks the format of the string or argument if it is invalid
try
This keyword is used to check for the occurrence of any exceptions enclosed to it
catch
This keyword catches the exception that is thrown on the occurrence of exception in a try block
throw
used to throw an exception manually.
finally
This keyword executes a given statement even if the exception is thrown or not thrown.
exception_Object
is an instance of a class derived from the Exception class
new
operator is used to create a new object
Thread
This is a class in C#.net that can be found in the System.Threading namespace
Main Thread
the first thread to be performed in a process
ThreadStart
use to execute the code when the thread started
ThreadStart
delegate represents a method that runs in the Thread class
Unstarted
is created within the Common Language Runtime (CLR) but has not started
Ready
is ready to run and is waiting for the CPU time
Running
is in running mode after invoking its Start method
WaitSleepJoin
is suspended temporarily by invoking either the Sleep method or the monitor’s Wait method.
Started
suspended thread resumes to Started state when the conditions for which is it was suspended are no longer valid.
Blocked
is blocked when it is waiting for a resource or I/O operations
Stopped
A thread has finished its task
CurrentThread
It returns the current thread that is running
IsAlive
It returns a Boolean value indicating the execution status of the recent thread.
IsBackground
It is used to get or set a value that indicates whether the thread is a background thread or not
Name
is used to get or set the name of the thread.
Priority
is used to get or set a value that represents the priority of a thread.
ThreadState
is used to get the value that contains the states of the recent thread.
public void Abort()
It terminates the thread when calling this method and raises ThreadAbortException in the thread
public void Interrupt()
It interrupts the thread that is in the state of WaitSleepJoin.
public void Join()
is used to stop the calling thread until a thread terminates
public static void ResetAbort()
It is used to withdraw an abort request for the ongoing thread.
public void Start()
It is used to start a thread
public static void Sleep()
It is used to pause a thread for the stated number in milliseconds.
Multithreading
is a common feature that allows your application to have more than one (1) execution path at the same time