Thursday, 15 May 2014

Is it safe to run two concurrent makes? -



Is it safe to run two concurrent makes? -

lets open 2 shells in same directory , run create in both @ same time. of course of study there no reason this, safe? can cause corrupt build files?

for more realistic example, might run 2 separate makes in different directories, without knowing both recursive makes in same directory.

i suspect reply here is complicated , depend, in part, on makefiles in question do. general create method of operation should create safe (in if newer sources won't rebuilt) create file cache , order of operations (especially combined possible utilize of -j) makes seem me might work might bad things.

that beingness said if makefiles constructed in "provably" right fashion (which notably might mean not using recursive make) might work ok.

as correctly pointed out madscientist in comment real underlying problem here when commands run create collide or overlap. create what, in case, causing happen because internal tests race 1 of variety of reasons.

make gnu-make

No comments:

Post a Comment