Event driven

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/42

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

43 Terms

1
New cards

Exception

is represented by classes

2
New cards

ApplicationException

These exceptions are user program-generated

3
New cards

SystemException

These exceptions are generated by Common Language Runtime (CLR

4
New cards

System.Exception

is at the top of the standards’ exceptions hierarchy

5
New cards
6
New cards

System.ArithmeticException

Errors in arithmetic or conversion operation will be thrown in this exception

7
New cards

System.OverflowException

When an overflow occurs in a checked operation

8
New cards

System.ArgumentException

Any invalid argument in a method will be thrown in this exception.

9
New cards

System.ArgumentNullException

If there is an unacceptable argument passed to a method,

10
New cards

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.

11
New cards

System.OutOfMemoryException

If the available memory becomes too low to accommodate a memory allocation request

12
New cards

System.StackOverflowException

is called when the execution stack is exhausted by having too many pending method calls.

13
New cards

System.FormatException

This exception checks the format of the string or argument if it is invalid

14
New cards

try

This keyword is used to check for the occurrence of any exceptions enclosed to it

15
New cards

catch

This keyword catches the exception that is thrown on the occurrence of exception in a try block

16
New cards

throw

used to throw an exception manually.

17
New cards

finally

This keyword executes a given statement even if the exception is thrown or not thrown.

18
New cards

exception_Object

is an instance of a class derived from the Exception class

19
New cards

new

operator is used to create a new object

20
New cards

Thread

This is a class in C#.net that can be found in the System.Threading namespace

21
New cards

Main Thread

the first thread to be performed in a process

22
New cards

ThreadStart

use to execute the code when the thread started

23
New cards

ThreadStart

delegate represents a method that runs in the Thread class

24
New cards

Unstarted

is created within the Common Language Runtime (CLR) but has not started

25
New cards

Ready

is ready to run and is waiting for the CPU time

26
New cards

Running

is in running mode after invoking its Start method

27
New cards

WaitSleepJoin

is suspended temporarily by invoking either the Sleep method or the monitor’s Wait method.

28
New cards

Started

suspended thread resumes to Started state when the conditions for which is it was suspended are no longer valid.

29
New cards

Blocked

is blocked when it is waiting for a resource or I/O operations

30
New cards

Stopped

A thread has finished its task

31
New cards

CurrentThread

It returns the current thread that is running

32
New cards

IsAlive

It returns a Boolean value indicating the execution status of the recent thread.

33
New cards

IsBackground

It is used to get or set a value that indicates whether the thread is a background thread or not

34
New cards

Name

is used to get or set the name of the thread.

35
New cards

Priority

is used to get or set a value that represents the priority of a thread.

36
New cards

ThreadState

is used to get the value that contains the states of the recent thread.

37
New cards

public void Abort()

It terminates the thread when calling this method and raises ThreadAbortException in the thread

38
New cards

public void Interrupt()

It interrupts the thread that is in the state of WaitSleepJoin.

39
New cards

public void Join()

is used to stop the calling thread until a thread terminates

40
New cards

public static void ResetAbort()

It is used to withdraw an abort request for the ongoing thread.

41
New cards

public void Start()

It is used to start a thread

42
New cards

public static void Sleep()

It is used to pause a thread for the stated number in milliseconds.

43
New cards

Multithreading

is a common feature that allows your application to have more than one (1) execution path at the same time