t if you're unlucky and thread 2 starts executing right after (*x == 0)
executed and before x++ x will still be 0
so it will test the expression, will see it's true and will do x++
then thread 1 resumes execution and finishes doing x++
In this case the value of x will be 2 instead of 1, like in the other case
And that's evil
Serena Del Bianco
[EMAIL PROTECTED] http://www.linuxchix.org
On Fri, 22 Oct 1999, TeknoDragon wrote:
> On Wed, 20 Oct 1999, Serena Del Bianco wrote:
>
> yes, I understand SMP programming concepts...
>
> as I said, I was assuming I could garuntee testset was an *atomic*
> function... i.e. indivisible and possibly smaller than
On Sat, 23 Oct 1999, Walt wrote:
> My question is: How do I find out stuff like the IRQ
> and I/O address information for the card from the
> system?
cat /proc/ioports
cat /proc/interrupts
[EMAIL PROTECTED] http://www.linuxchix.org