Re: How to share data between threads
- From: Vladimir Vassilevsky <antispam_bogus@xxxxxxxxxxx>
- Date: Sat, 13 Sep 2008 15:17:01 -0500
Grant Edwards wrote:
On 2008-09-13, Vladimir Vassilevsky <antispam_bogus@xxxxxxxxxxx> wrote:
Whenever there is anything shared between the two threads, I always use the OS synchronization mechanism. It is not a good idea to rely on the atomicity of *any* operation, because it is VERY system dependent. Also, I avoid the communication between the threads via the shared objects. Instead, I use the OS message passing mechanism,
How can that not be using a shared object?
A message is any object which one thread sends to another thread. When the object is sent, it no longer belongs to the originator.
VLV
.
- Follow-Ups:
- Re: How to share data between threads
- From: Grant Edwards
- Re: How to share data between threads
- References:
- How to share data between threads
- From: vishal . cs024
- Re: How to share data between threads
- From: Tim Wescott
- Re: How to share data between threads
- From: Paul Keinanen
- Re: How to share data between threads
- From: Vladimir Vassilevsky
- Re: How to share data between threads
- From: Grant Edwards
- How to share data between threads
- Prev by Date: Re: AVR tiny13 ADC0 syntax problem
- Next by Date: Re: AVR tiny13 ADC0 syntax problem
- Previous by thread: Re: How to share data between threads
- Next by thread: Re: How to share data between threads
- Index(es):
Relevant Pages
|