Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jun 2004 12:26:09 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        pjd@freebsd.org
Cc:        nate@root.org
Subject:   Re: cvs commit: src/sys/kern kern_proc.c
Message-ID:  <20040609.122609.76328844.imp@bsdimp.com>
In-Reply-To: <20040609182041.GV12007@darkness.comp.waw.pl>
References:  <20040609175357.GA32787@freefall.freebsd.org> <20040609182041.GV12007@darkness.comp.waw.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <20040609182041.GV12007@darkness.comp.waw.pl>
            Pawel Jakub Dawidek <pjd@FreeBSD.org> writes:
: BTW. Do we assume that atomic operations are atomic on MP machines?
: I read atomic(9), but I still don't know if I should use it or not for
: things like those.

They are.  That's one thing that pessimizes them so horribly.  They
have to be locked instructions on some architecutres that causes all
kinds of nasty (time consuming) things to happen.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609.122609.76328844.imp>