Top 25+ Advanced Multithreading Interview Questions 2020-21 - 1
List out the classes in the system.threading namespace?
The following classes are important in this namespace.
Give the methods of thread class?
The following are the methods supported by the tread class.
Start – to start a thread.
Join – to block a thread until another thread has terminated.
Resume – to resume the thread.
Suspend – to suspend a thread.
Sleep – to block the thread for some time.
Spinwait – to make a thread wait for the number of times specified in the Iterations parameters.
Interrupt – to interrupt the thread which is in the wait Sleep Join state.
Explain the process based and thread based multitasking?
Process Based Multitasking
Multitasking of two or more processes in known as process based multitasking.
It is totally controlled by the operating system.
Thread based multitasking
Multitasking of two or more threads is known as thread based multitasking.
It is controlled by the programmer.
It has the following advantages over the process based multitasking.
In what way the mutex class is different from the monitor class?
Differences with monitor class
It is possible to use a same mutex in several processes on a same or even remote machine.
The use of monitor does not allow waiting on several objects.
The mutex class does not have Wait() Pulse() and Pulse All() functionalities of the monitor class.
7000+ GATE Metallurgy Question Paper with Solution Pdf More
7000+ Mechanical Engineering Aptitude Questions & Answers More
7000+ IBPS English Questions with Answers Pdf More
Puzzles Tips and Tricks for Bank PO, SO, Clerk Exams More
Reasoning Puzzles Questions & Answers Pdf More
Ratio and Proportion Questions for IBPS PO, SO, Clerk Pdf More
1000+ Numerical Ability Questions and Answers for Bank Exam More
7000+ Metallurgical Testing and Inspection MCQ Questions and Answers More
1000+ Physics Questions and Answers for Competitive Exams More
Atmospheric Humidity MCQ Questions and Answers More