This looks like a cool project. It’s an ASP.NET 1.1 project that allows you to access the event logs from a system as a RSS feed. I usually make good use of the event log when I work on server apps, this could be handy.
Day: May 27, 2005
More fun with threading
Here’s an interesting post from benwu.
After executing Thread1 and Thread2, what are the possible values for “i”?
bool b1 = false;
bool b2 = false;
int i = 0;
private void Thread1()
{
b1 = true;
if (b2)
{
i = 1;
}
}
private void Thread2()
{
b2 = true;
if (b1)
{
i = 1;
}
}
bool b2 = false;
int i = 0;
private void Thread1()
{
b1 = true;
if (b2)
{
i = 1;
}
}
private void Thread2()
{
b2 = true;
if (b1)
{
i = 1;
}
}
On multi-processor machines, sometimes it will be zero. Check here for his explanation.