Re: Inter-process atomic operations
- From: "Don Burn" <burn@xxxxxxxxxxxxxxxx>
- Date: Thu, 16 Mar 2006 07:54:54 -0500
Comments inline:
"Nadav" <Nadav@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1B840805-16A8-4D62-B3E1-BDBF31DE68C6@xxxxxxxxxxxxxxxx
Hi,
I am developing a server that should work on a multiple CPU machine, some
questions:
1. Does the Interlocked API set guarantee inter CPU atomic operations or
JUST inter thread atomic operations.
The interlocked operations are atomic across CPU's
2. The 'volatile' keyword assures that the volatile variable would use a
register for interaction, this guarantee atomic interactions, BUT, when
dealing with several CPUs we have multiple sets of registers, would
setting a
variable as volatile guarantee inter-process atomic interactions?
volatile ensures things do not go into registers! volatile is by itself not
enough to
ensure correct operation.
Is there any solution other then using the common sync objects ( critical
sec, mutex, . ) for inter-process atomic operations?
Use Interlocked api's where possible.
--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply
.
- Prev by Date: Re: BDA driver for ATSC in MCE 2005
- Next by Date: How to support foreign characters in message file?
- Previous by thread: user and security context with windows 2000 printer driver
- Next by thread: Re: Inter-process atomic operations
- Index(es):
Relevant Pages
|
|