MIDTERMS | Threads | Event-Driven Programming

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/34

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.

35 Terms

1
New cards

Thread

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

2
New cards

Thread

It is used to create and control threads in a system or application, in which the properties and methods are already provided.

3
New cards

Thread

This is an independent execution unit containing a piece of code. When a process begins, the main thread is started.

4
New cards

Thread

All threads within a process share the same state and memory space and communicate with each other to perform different tasks.

5
New cards

Main Thread

The first thread to be performed in a process is known as the ___ _____.

6
New cards

Child Thread

Threads made using the Thread class are known as ____ ______ of the main thread.

7
New cards

Delegate

When the thread object is created, the _________ will be used to initialize the thread object.

8
New cards

ThreadStart

To define a callback method in the delegate, use __ to execute the code when the thread started.

9
New cards

ThreadStart

A __ delegate represents a method that runs in the Thread class.

10
New cards

Unstarted State

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

11
New cards

Ready State

A thread is ready to run and is waiting for the CPU time.

12
New cards

Running State

A thread is in running mode after invoking its Start method.

13
New cards

WaitSleepJoin State

A running thread is suspended temporarily by invoking either the Sleep method or the monitor's Wait method.

14
New cards

Started State

A suspended thread resumes to _____ _____ when the conditions for which it was suspended are no longer valid.

15
New cards

Blocked State

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

16
New cards

Stopped State

A thread has finished its task.

17
New cards

ThreadAbortException

If the thread is aborted, an exception will be thrown named ___.

18
New cards

CurrentThread

It returns the current thread that is running.

19
New cards

IsAlive

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

20
New cards

IsBackground

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

21
New cards

Name

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

22
New cards

Priority

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

23
New cards

ThreadState

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

24
New cards

public void Abort()

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

25
New cards

public void Interrupt()

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

26
New cards

public void Join()

It is used to stop the calling thread until a thread terminates.

27
New cards

public static void ResetAbort()

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

28
New cards

public void Start()

It is used to start a thread.

29
New cards

public static void Sleep()

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

30
New cards

Multithreading

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

31
New cards

Round-robin

In multithreading, the CPU is assigned to each thread for a time slice before moving on to the next thread. In other words, the CPU serves each thread or a given time interval in a ___ fashion.

32
New cards

Race condition

The two (2) child threads (_childThread1 and _childThread2) are gotten from the same resource simultaneously for manipulation, which is known as ____ __.

33
New cards

Unstarted, Ready, Running, WaitSleepJoin, Started, Blocked, Stopped

Thread States: HINT: U R R WSJ S B S

34
New cards

CurrentThread, IsAlive, IsBackground, Name, Priority, ThreadState

Thread Properties: HINT: CT IA IB N P TS

35
New cards

Abort, Interrupt, Join, ResetAbort, Start, Sleep

Thread Methods: HINT: A I J RA S S

Explore top flashcards

Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)
Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)