user1260953
user1260953

Reputation: 35

Remote thread execution

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

Answers (1)

Jerry Coffin
Jerry Coffin

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

Related Questions