Article View: borland.public.cppbuilder.nativeapi
Article #2773Re: TCriticalSection between 2 threads
From: Remy Lebeau (TeamB)
Date: Tue, 28 Nov 2006 11:18
Date: Tue, 28 Nov 2006 11:18
17 lines
1453 bytes
1453 bytes
"Boba" <Boba@somewhere.world> wrote in message news:456c1747@newsgroups.borland.com... > and what do you call an 'atomic operation' ? An operation that can be executed in a single CPU cycle, such that only one thread can possible access the memory at a time without extra synchronization. However, this fails in a multi-CPU or hyper-threaded system, such that one CPU can be writing the data, even atomically, while the other CPU is accessing it. So you should not rely on the accuracy of atomic operations anymore. Gambit
Technical Details
Message-ID:
<456c1c23$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<456bfb16@newsgroups.borland.com> <456c0cd1@newsgroups.borland.com> <456c1747@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2ab3d3cded5b6fe1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <456bfb16@newsgroups.borland.com> <456c0cd1@newsgroups.borland.com> <456c1747@newsgroups.borland.com> Subject: Re: TCriticalSection between 2 threads Date: Tue, 28 Nov 2006 03:18:39 -0800 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <456c1c23$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164712995 69.169.4.232 (28 Nov 2006 03:23:15 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail