Wish: Variable Not Used Warning
BCS
ao at pathlink.com
Fri Jul 11 10:10:50 PDT 2008
Reply to Markus,
> On Fri, 11 Jul 2008 04:17:13 +0000, Markus Koskimies wrote:
>
>> I'll read that later.
>>
> I read it. It's all about the well-known barrier between porcessors,
> memories (RAM) and disks, and the necessarity of
>
The spesific effect I was talking about is not in the slides. If you havn't
seen the video, you didn't see the part I was refering to.
int[1000] data;
thread 1:
for(int i = 1000_000); i; i--) data[0]++;
thread 2a:
for(int i = 1000_000); i; i--) data[1]++;
thread 2b:
for(int i = 1000_000); i; i--) data[999]++;
On a multi core system run thread 1 and 2a and then run 1 and 2b. You will
see a difference.
More information about the Digitalmars-d
mailing list