Process/thread scheduling is left to the OS. Child-makes and -j can be surprising. -j without a max # is "spawn as many recipies in parallel as possible." If you use -j4, the child makes only get the -j and not the number. So, more threads could start than you expect.
================================================================= Brian Cowan Advisory Software Engineer ClearCase Software Advisory Team (SWAT) Rational Software IBM Software Group 550 King St Littleton, MA 01460 Phone: 1.978.899.5436 Web: http://www.ibm.com/software/rational/support/ From: Shriramana Sharma <[email protected]> To: [email protected] Date: 11/04/2014 08:50 AM Subject: Will using make -j actually use multiple processor cores? Sent by: [email protected] Hello. I learnt that I can use make -j to have make execute multiple jobs in parallel. Does this somehow guarantee that my 4 cores of an i5 will be used simultaneously or is that left to the (Linux) kernel? -- Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
_______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
