C# Multithreading Interview Questions and Answers - 1
List any four properties of thread class?
Name - Specify the name for a thread.
Current Thread – To retrieve the name of currently running thread.
Is Alive - To retrieve the value to indicate the current state of thread execution. True means thread has been started. False means thread may be terminated.
Is Thread Pool Thread – To retrieve the value to indicate whether a thread is part of a thread pool or not.
Define child thread?
The threads created by the main thread are known as secondary threads or child threads.
A thread is a dispatch unit of work. It is also known as Lightweight process.
List out the states in the thread?
The following are the important states in the thread.
Started - New thread is spawn and is running.
Unstarted - Thread is not yet started.
WaitJoinSleep – Wait state.
Suspended - Blocked for an event.
StopReq - Request to stop.
Stopped - Execution completed or aborted
Give the uses of the multithreading?
Maintaining a responsive user interface.
Making efficient use otherwise blocked CPU.
Allowing requests to be processed simultaneously.
100+ Data Interpretation Pie Chart Questions and Answers More
True Discount Questions and Answers for Bank Exams More
100+ HCF and LCM Questions and Answers for SSC Exams More
Aptitude Interview Questions and Answers Pdf More
100+ Boats and Streams Problems with Solutions Pdf More
Computer Quiz Questions with Answers for Class 7 More
Data Structure Lab Exam Practical Viva Questions and Answers More
100+ Simplification Questions and Answers for Bank Exams More
Reasoning Direction Sense Test Questions & Answers Pdf More
Basic Computer Knowledge Questions and Answers Pdf More