If thread 2 can only work if thread 1 is finished, it would be make more sense to make one single new thread that does both thing sequentially. Multithreading is only useful for independent things. I would advise you to do that in a DLL that uses a comfortable Multithreading framework like OpenMP.

Just my two cents.