Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » Simple class to handle variables used by different threads
Re: Simple class to handle variables used by different threads [message #45044 is a reply to message #45043] Mon, 24 August 2015 11:34 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Mon, 24 August 2015 09:05
Hello Mirek

The goal is to have variables that can be read and written safely in different threads. Of course there will be an efficiency penalty Smile .


Well, but "can be read and written" is very broad term...

E.g. most primitive types can already be written/read "safely" (without synchronization). The issue with MT is not this, but "transactions", where several reads and writes are grouped and should form a transaction. Like x = x + 1.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to just Post data ?
Next Topic: Mt.cpp broken compile using 9604 nightly snap-shot
Goto Forum:
  


Current Time: Sun Apr 28 23:45:51 CEST 2024

Total time taken to generate the page: 0.02351 seconds