Yeah, me either. Welcome to Java!:) -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Jones Sent: Monday, July 16, 2007 9:09 AM To: Rules Users List Subject: Re: [rules-users] Rule compilation errors under heavy load
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 [email protected] https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
