Hi Thomas, On 7/16/07, Hehl, Thomas <[EMAIL PROTECTED]> 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. _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users