iPod rebrand — by Microsoft?
Here’s a good one. It attempts to answer the question: what would happen if Microsoft designed the iPod packaging?
(Update: corrected broken link)
Comments (1) » 
Here’s a good one. It attempts to answer the question: what would happen if Microsoft designed the iPod packaging?
(Update: corrected broken link)
Comments (1) » In Java you can mark a class method as a critical section, i.e. it will only be executed by one thread at a time, by using the synchronized keyword:
synchronized void myMethod()
{
doSomething();
}
In C# you have to type in this ghastly (and rather obscure) mouthful:
using System.Runtime.CompilerServices;
[MethodImpl(MethodImplOptions.Synchronized)]
void MyMethod()
{
DoSomething();
}
Why can’t we have a synchronized keyword in C# for this like in Java?