🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7534

Accessing same variable from multiple threads

#7534
From: Tumurbaatar S.
Date: Wed, 19 Jan 2005 05:04
5 lines
1235 bytes
There's a integer variable visible to 2 threads. One of the threads
reads/modifies this var, but other thread only reads it.
But an exact value of the var is not important for the 2nd thread.
The thread checks it for zero or not, i.e. "if (my_var)...".
Is it not matter that I'm not using any synchronization methods? 
Technical Details
Message-ID: <41edea6b@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-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4809cdd9a7828fa7,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Tumurbaatar S." <nospam_tumur@magicnet.mn>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Accessing same variable from multiple threads
Date: Wed, 19 Jan 2005 13:04:43 +0800
Lines: 7
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 202.131.2.6
Message-ID: <41edea6b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106111083 202.131.2.6 (18 Jan 2005 21:04:43 -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