Article View: borland.public.cppbuilder.nativeapi
Article #7497Re: Accessing same variable from multiple threads
From: Remy Lebeau (TeamB)
Date: Tue, 25 Jan 2005 08:20
Date: Tue, 25 Jan 2005 08:20
15 lines
1717 bytes
1717 bytes
"roladdon" <roladdon@PutMyServerHere.ca> wrote in message news:41f598ef$1@newsgroups.borland.com... > Two threads reading the same multi byte value (which was set > before the threads started). I would not think so - but > corruption possible here? If the value is never changing while the threads are running, then it is safe to not synchronize the reading. But the focus of the earlier discussions involved writing as well as reading. Synchronizing is required in that scenerio. Gambit
Technical Details
Message-ID:
<41f60090$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41edea6b@newsgroups.borland.com> <41ee9aae$1@newsgroups.borland.com> <41ef3506@newsgroups.borland.com> <41eff001$1@newsgroups.borland.com> <41f57030$1@newsgroups.borland.com> <41f57ff8$1@newsgroups.borland.com> <41f58ffe@newsgroups.borland.com> <41f59319@newsgroups.borland.com> <41f598ef$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4809cdd9a7828fa7 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: <41edea6b@newsgroups.borland.com> <41ee9aae$1@newsgroups.borland.com> <41ef3506@newsgroups.borland.com> <41eff001$1@newsgroups.borland.com> <41f57030$1@newsgroups.borland.com> <41f57ff8$1@newsgroups.borland.com> <41f58ffe@newsgroups.borland.com> <41f59319@newsgroups.borland.com> <41f598ef$1@newsgroups.borland.com> Subject: Re: Accessing same variable from multiple threads Date: Tue, 25 Jan 2005 00:20:00 -0800 Lines: 17 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: 68.69.17.41 Message-ID: <41f60090$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106641040 68.69.17.41 (25 Jan 2005 00:17:20 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail