I love technology and education. Maybe you like knitting. Cool. My thing is educational technology.
One of my students came in and asked me this :
So I realize this question sounds stupid (and yes I am using a dual core), but I have tried two different libraries (Grand Central Dispatch and OpenMP), and when using clock() to time the code with and without the lines that make it parallel, the speed is the same. (for the record they were both using their own form of parallel for). They report being run on different threads, but perhaps they are running on the same core? Is there any way to check? (Both libraries are for C, I’m uncomfortable at lower layers.) This is super weird. Any ideas?
I told him this smells like a problem with the tool he is using to measure clock speeds, and perhaps an issue with the scheduler. He posted this question here and sure enough, clock() isn’t the best way to measure code execution speed.
This kid is 14 years old.
I love this stuff.
On 31 March 2011, szakddsbq inscribed the following thoughts about this post:
XQhlRN ujfgkpaksoav, yzdyyqksdums, [link=http://qcpuyjgcecll.com/]qcpuyjgcecll[/link], http://vagxaddyerkc.com/
Bill MacKenty, Chief Zuccini
I make a difference in the life of kids. You want to tell me what's more rewarding?
Resume
This is my full resume. It has all my work experience since I graduated from college in 1992, including certifications, professional memberships, and descriptions of my work.