[rules-users] Rule compilation errors under heavy load

Hehl, Thomas Thomas.Hehl at acs-inc.com
Mon Jul 16 09:12:39 EDT 2007


Yeah, me either. Welcome to Java!:)

-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] 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 <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.
_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



More information about the rules-users mailing list