site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=sdWr9Ye3v0migP27Dd5UWmIV1ITzTgPy3o3Ylra9MNvK1Si6bGpULQq7Jq0xBUfsiduyVKl32OLBjRR0X/pmESxWuaXwQgxjMvJabY4Pkm49kkAF/3MU1pMVotQTgYf79E3GWMNCS3itgsrjO50yrqmkEdyuO2u1/5l0vMsB72U= ; Thanks, Tony _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I've got a memory test application that runs in both a terminal window as well as in single-user mode. It has recently come to my attention that because my app is only exercising one of the CPU's on multi-processor machines, I can't adequately test the CPU cache paths for the other processors. My app can catch cache failures so it's imperative that I be able to test all processors on a given machine. My question relates to the difference between use of fork/exec to launch multiple processes and the use of pthreads. What I want is a guarantee that if the machine has 4 CPU's, all 4 will run a portion of the overall memory tests by launching four separate test processes with each one testing 1/4 of the available memory. I can't find any documentation regarding the difference between pthreads and fork/exec nor anything that states definitively that launching X number of threads or processes will spread those processes or threads across all X CPU's. Can someone please shed light on this and let me know which route I should go? This email sent to site_archiver@lists.apple.com
participants (1)
-
Tony Scaminaci