Frequently Asked Interview Questions on Threads

Here are the list of frequently asked interview question and their answers. Hope that shall help you to update your knowledge.

__________________________________________________________

Ques: What is thread? 

Ques: What does thread/process follow, Parallelism or Concurrency ?

Ques: Why does thread is called light-weighted process?

Ques: What are different types of threads?

Ques: Is it necessary that User-Level thread shall be associated with Kernel-Level Thread?

Ques: What are the system resources shared between process and thread?

Ques: Why do we join a thread?

Ques: What will happen if we don't call join() or detach() on thread object?

Ques: Can we join the detached thread?

Ques: What will happen if main thread exit before detached thread complete its assigned task?

Ques: What will happen if call join() again on same thread object?

Ques: Can we use the same thread object for different task after join()?

Ques: How to call a static member function from a thread?

Ques: How to call Overloaded member function from a thread?

Ques: How to call Overridden Virtual function from a thread?

Ques: Is is possible to call overloaded operator to call from a thread?



PREV::thread::native_handle and hardware_concurrency

Your Comments /Suggestions & Questions are always welcome. 

We would like to help you with best of our knowledge.

So feel free to put Questions

No comments:

Post a Comment