Reputation: 35
I have a large scale multithreaded math application written in C++ and MFC. I'm searching for a method to track thread execution (thread starts) and take it (stop it before executing and move) from a local machine and run on a remote machine regarding that all bin files and memory heap were already transfered. It is also not possible to make severe modifications in the source code of the application.
I know that MPI is doing similar job with some modifications to the program.
Can you advice something? All ideas and links are appreciated. What I should also read?
Upvotes: 0
Views: 291
Reputation: 490178
Assuming they use CThread to create/start their threads, you can probably write your own version of CThread to create/start threads remotely.
My guess is that getting things to work from there may well be non-trivial though. Windows threads (like most others) share memory space with the parent, so a thread can (for example) the parent/child can share access to common memory simply by passing a pointer. Emulating the shared memory on a remote machine will be quite a bit more complex than creating/running a thread there.
Upvotes: 1