I’ve been working on synchronisation issues in my work code recently. Which is interesting because I’ve just covered Synchronization in the kernel book I’m reading. But, I’m not getting it right. If I put the task on the ThreadPool(Windows) and then run the operations within the ThreadPool in parallel themselves – stuffs goes kaboom. Its OK – this period is not that stressful I’m not on a deadline which is good because I’ve been not getting this right for 2 days now.(edit: I’m got it working! Nothing like a big fat lock can’t help..remember lock data not code.)

While C is a cool language that has a special place in my heart – C# is also pretty great. I’ve been reading Stroustraps’s Tour of C++ but its pretty dry and things like Lambdas in C++ 11 are encouraging me to have a look – could C# give way to C++ (for me, probably not).