Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > Re: How to make...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 4041 of 4146
Post > Topic >>

Re: How to make this program more efficient?

by "Chris M. Thomasson" <no@[EMAIL PROTECTED] > Sep 21, 2008 at 05:36 AM

<courpron@[EMAIL PROTECTED]
> wrote in message 
news:6c1edd55-708e-432a-93f9-224e7ee6b3fd@[EMAIL PROTECTED]
> On 21 sep, 14:27, Jon Harrop <j...@[EMAIL PROTECTED]
> wrote:
>> courp...@[EMAIL PROTECTED]
 wrote:
>> > On 21 sep, 00:12, Jon Harrop <j...@[EMAIL PROTECTED]
> wrote:
>> >> Within the confines of your assumptions I agree but, in general,
that 
>> >> is
>> >> not true
>>
>> > What is exactly wrong? that you get the ordering and caching problem
on
>> > most SMP architectures?
>>
>> The question is whether or not those are always a problem. They are a
>> problem if determinism is required but determinism is not always 
>> required,
>> e.g. when caching the results of pure computations.
>
>
> I said you get the ordering problem and caching problem on most SMP
> architectures (i.e they are inherent problems of SMP architectures), I
> didn't say that you get those problems on all algorithms. In fact, I
> can write a simple algorithm where no synchronization at all is needed
> because the shared object is accessed(read and written) concurrently
> but never used.
> Back to the topic, without any specific details about the
> architecture, the RCU, by default, needs memory barriers to access the
> pointer.

RCU, from the point of reader threads, does NOT need explicit membars to 
access and/or deference the pointer on virtually all major archs out
there; 
DEC Alpha aside for a moment. Dependant load barrier anyone?

;^D
 




 1 Posts in Topic:
Re: How to make this program more efficient?
"Chris M. Thomasson&  2008-09-21 05:36:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 8:59:05 CST 2008.