Domain Name Forum  
Domain Name Coupons

Domain Name Forum

Domain Name Appraisals

VPS FORUM

Expired Domains

Domain Name Tutorials

Parking & Traffic Monetization

Domain Registration Reviews and rating

Domain Name Offers And Requests

Go Back   Domain Name Forum > Web Design & Development > Programming > Computer Science
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2009, 08:51 PM
webdev webdev is offline
Senior Member
 
Join Date: Jun 2009
Posts: 7,868
Default Is it safe to have multiple threads add to or subtract from a quantity?

Say I have a single floating point number called result equal to 0 and two threads, one thread adds 4 and the other subtracts 2. Is there any possibility that result will be equal something other then 2 afterwards? If you want a more concrete example I ask this question because of a project I'm...
__________________
Website Development
Domain Name Forum
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:38 PM.

| Webmaster Forum | | Domain Name Forum |



Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.