• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/7

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

7 Cards in this Set

  • Front
  • Back

What the "Thread" class does?

Enables you to create new threads, manage their priority, and get their status

What is "Synchronization"?

A mechanism of ensuring that two threads don't execute a specific portion of your program at the same time.

What is the role of Thread.Sleep(0) ?

Signals Windows that the thread is finished. Instead of waiting for the whole time-slice of the thread to finish, it will immediately switch to another thread.

What does Thread.Join() do?

It is called on the main thread to let it wait until other threads finish.

How do you create and initialize a thread?

Thread t = new Thread( new ThreadStart(ThreadMethod));




t.Start();

What is [ThreadStatic] attribute used for?

By marking a field with the [ThreadStatic] attribute, each thread gets its own copy of a field.

What is a "Task"?

An object that represent some work that should be done.