Mutual Exclusion - http://en.wikipedia.org/wiki/Mutual_exclusion
On Tue, Sep 16, 2008 at 11:26 PM, Julian Leviston <[EMAIL PROTECTED]>wrote: > > I don't think I understand what mutexes are really anymore <cry> > > Can you explain why turning a mutex lock on makes it faster? > > What is the difference between when the mutex is off and when it's on? > > Julian. > > > On 17/09/2008, at 3:57 PM, Matt Aimonetti wrote: > > > > > After John Bressnik from SDRuby asked questions about Merb mutex, I > > run some benchmarks. > > > > I was hitting a controller making 1 simple DB request and I couldn't > > see a difference between the mutex lock being on or off. > > > > I then added a sleep of 0.1 in the controller are here are the > > dramatic results: > > > > http://gist.github.com/11201 > > > > Requests per second: 9.81 [#/sec] (mean) with mutex on VS Requests > > per second: 83.26 [#/sec] (mean) mutex off > > > > The benchmark app was using DM. > > > > -Matt > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
