What do you mean by "functionA calling thread1"
Do you mean you want to start thead1 in the main thread when functionA is called?
What exactly is the problem you are having?
Can you show relevant code?
Don't expect to be taught thread programming on a forum, but if you have a specific question, then please provide all information needed to help you.
Bookmarks