1.  Choose the namespace which supports multithreading programming:


System.net
System.Linq
System.Threading
All of the mentioned


Answer

 Option

The classes that support multithreaded programming are defined in the System.Threading namespace. Thus, you will usually include this statement at the start of any multithreaded program.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  What kind of exception is being thrown if Wait(),Pulse() or PulseAll() iscalled from code that is not within synchronized code ?


System I/O Exception
DivideByZero Exception
SynchronizationLockException
All of the mentioned


Answer

 Option

A SynchronizationLockException will be thrown if Wait(), Pulse(), or PulseAll() is called from code that is not within synchronized code, such as a lock block.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  Which of these keywords are used to implement synchronization ?


synchronize
syn
synch
synchronized


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  Which of these classes is used to make a thread ?


String
System
Thread
Runnable


Answer

 Option

The multithreading system is built upon the Thread class, which encapsulates a thread of execution. The Thread class is sealed, which means that it cannot be inherited. Thread defines several methods and properties that help manage threads.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  Which of these method of Thread class is used to Suspend a thread for a period of time ?


sleep()
terminate()
suspend()
stop()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report