-1

The main idea is that I have 3 slaves and each one execute a file and the master generate the make file , I need your help to know what are the libraries that I should use, and how can I detect the end of calculation of each process. Thanks.

4
  • 1
    I'm unclear on what you want to distribute exactly. The work of creating the makefile? The work of compiling/etc. the project that the makefile manages? Something else? Does distcc help here? Feb 22, 2015 at 19:57
  • Also, when you say "slaves" and "master", are those different hosts? Processes? What does "execute a file" mean? Feb 22, 2015 at 21:33
  • the slaves are different machines, each one execute a different code and another machine generate the make file Feb 22, 2015 at 22:48

1 Answer 1

0

Since this is a school assignment, I'm going to advise only on the choice of libraries.

So you need to execute remote commands and transfer data, this either requires starting a daemon on the remotes or leveraging an already running daemon. I think the latter is a better choice here, so you could use something like the libssh with keys for both transfer and command execution.

Then you need to analyze the dependencies between the rules, and execute the commands via the library in the right order (and degree of parallelism).

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.