[rules-users] Rule compilation errors under heavy load
Dean Jones
dean.m.jones at gmail.com
Mon Jul 16 09:08:35 EDT 2007
Hi Thomas,
On 7/16/07, Hehl, Thomas <Thomas.Hehl at acs-inc.com> wrote:
> Couldn't you use yield() to generate a context-switch? It would only happen
> in that spot, but should produce some good testing.
>
It's a good point about using yield(). I did use this originally, but
for some reason it generated fewer errors than using some arbitrary
sleep values. At the time, I explained this to myself as follows:
yield() means that context switching happens at well-defined points,
whereas when there are lots of sleeping threads waking up at arbitrary
moments wanting to be run, context switching happens more randomly.
I'm not sure if this explanation makes complete sense, though.
Dean.
More information about the rules-users
mailing list