FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

Multithreading Interview Questions and Answers

1. 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.
Your Name Your Email-ID
Your Answer
 
2. Give the uses of the multithreading?
 
  • Maintaining a responsive user interface.
  • Making efficient use otherwise blocked CPU.
  • Parallel programming.
  • Speculative execution.
  • Allowing requests to be processed simultaneously
Your Name Your Email-ID
Your Answer
 
 
3. 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.
Your Name Your Email-ID
Your Answer
 
4. 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.
Your Name Your Email-ID
Your Answer