This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have two different thread.
One for getting data from database, another for getting data from file system.
These two thread are independent of each other.
Once both get completed, need to send mail which contains fetched data from database and filsystem as well.
function call is as follows:
Now how to make sure that mail will be send only when both thread (thread1 and thread2) will be finished?