[DGD] Paranoid about MP

Noah Gibbs noah_gibbs at yahoo.com
Tue Aug 15 07:27:25 CEST 2006


  If you schedule both as 0-second callouts then yes, I believe they can wind
up committing in a different order.  If you're not doing *much* of this you
could make one a 0-second callout and one a very small fraction of a second
callout, but that won't work in all cases.

  But yes, you probably want to clean up that voodoo for MP, as you're
worrying.

--- Shentino <shentino at gmail.com> wrote:

> I did some reading about how MP was going to be implemented and ran
> across a concern.
> 
> Do I need to be worried about reordering of threads?
> 
> More to the point:
> 
> Barring speed differences, is it guaranteed that execution rounds in
> MP will execute in the same order as in UP?  Or can threads commit in
> a different order than they started in?
> 
> Examples:
> 
> callout 1 (0 second) is scheduled
> callout 2 (0 second) is scheduled
> 
> but if callout 2 is faster, it might commit before callout 1.
> 
> Is this a concern or am I just being paranoid?
> 
> I'm doing some voodoo that depends on proper ordering.
> __________________________________________
> http://mail.dworkin.nl/mailman/listinfo/dgd
> 




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the DGD mailing list