From: Francis Cianfrocca Date: 2007-02-09T05:46:33+09:00 Subject: Re: MultiThreading in C++ ------=_Part_17135_3012308.1170967590962 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 2/8/07, David Vallner wrote: > > On Wed, 07 Feb 2007 17:28:59 +0100, Patrick Hurley > wrote: > > > On 2/7/07, David Vallner wrote: > >> Threads for a single process only get scheduled on one of the cores? > >> This > >> is new to me, I thought at least on Windowsen, threads are the base > >> scheduling unit. > > Horribly offtopic reply: on Windows, the scheduling unit is what Windows calls a "thread" (and might be more properly termed a kernel thread or a light-weight process). Essentially the same deal on Linux. On Solaris it's different, you have both LWPs and userland threads. To your point, windows threads within a process will get scheduled on multiple cores and/or processors (you can even tune their affinity for particular cores), but this adds nothing of value in the OP's homework assignment. Partition the incoming dataset, schedule on multiple processes, and aggregate the result sets at the end. So much easier to debug than a threaded implementation. ------=_Part_17135_3012308.1170967590962--