Starting project 1.
The various parts of the assignment.
Just doing some scratch work at the moment to make sure I can work with pthreads semi-effectively. The man pages are actually pretty nice. I keep finding myself saying that. Maybe I should read the man pages more often. At least for kernel-level stuff.
Working on part 1a.
Ok. Part1a done. Not doing part1b unless I have time. Icky Icky Windoze. No thanks.
Tweaking part1a to better line up with comments.
Still fiddling with part2a.c; not working yet.
Huh? Not sure why that works. Changed how I allocated arrays of pthread_t. pthread_t thread[] doesn't work but malloc'ing does.
I'M A MORON!!! FFFFFFFUUUUUUUUUUUU!!!!!
Going to start work on part3a part3b now. Starting with part3b since I'm familiar with pthreads.
Still working on part3b. I've discovered the need for a mutex. If multiple threads access the _same_ shared resource, you need sync of some sort. We don't need sync on the array, since no two threads ever access the same element.
That's better.
Well, my concurrent version is slower. Derp.
I've gotten to a point where I'm measuring slower times for the concurrent case at least. But not as slow as expected. About 40% slower than expected.
Ugh. Not getting the performance I want. But don't have any more time to look into it.
I'm happy with this for now. I can demonstrate speedup from 1, 2, and 4 threads for pthreads and openMP. My pthreads isn't as good as openMP, but there's still improvement. That's bound to be worth most of the points.
Didn't separate part3a and part3b. Did it in a single program.
I concede defeat... this time.
House cleaning.
More house cleaning.