Wednesday, March 2, 2016

Thread


Thread is most important concept in software development . It is very important to know about it .
What is Thread :

Thread is separate execution of code
one thing I wanted to tell ,Threads are EVIL ,don’t create it until and unless an absolute necessary .

Why (Advantage) Threads :
To have concurrent execution of code .

Why not (Disadvantages) :
1. Thread introduces context switch ,which will slow down the application performance
2. Need to use synchronization for the shared object

yes , I hope you know , why Thread is having separate STACK and why it is sharing HEAP …

No comments:

Post a Comment