C# Multithreading Interview Questions and Answers - 2

Question: 6

Name the priority values in the thread?

Normal

Above Normal

Below Normal

Highest

Lowest

Question: 7

Define lock statement?

A lock statement is used to acquire a mutual execution lock implemented by the monitor class.

The lock statement does not provide features as supported by monitor class. 

It simply enables to obtain and release a monitor lock.

Question: 8

What are the features of sleep method?

It takes only one argument representing the time.

It is a static method.

Invoking thread.sleep(0) causes current thread to relinquish.

Question: 9

Define thread pool?

A thread pool is basically a group of threads that can be run simultaneously to perform a number of tasks in the background.

It is mainly used in server applications.

Related Questions