Re: How to share data between threads
- From: Grant Edwards <grante@xxxxxxxx>
- Date: Sat, 13 Sep 2008 14:55:56 -0500
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?
which is guaranteed to be atomic and free from the priority
lockup. Albeit somewhat inefficient, this discipline allows
developing big projects and keeping them manageable.
--
Grant Edwards grante Yow! ! Up ahead! It's a
at DONUT HUT!!
visi.com
.
- Follow-Ups:
- Re: How to share data between threads
- From: Vladimir Vassilevsky
- 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
- 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
|