[JDEV] Resources and Priorities Questions

DJ Adams dj.adams at pobox.com
Sun Mar 3 16:54:00 CST 2002


On Wed, Feb 27, 2002 at 12:35:42PM -0700, David Waite wrote:
> I'm not sure, but I thought priority ties were decided by whichever 
> changed presence last.

It's the most recent connection, as it's based on how the sessions
are managed (stored) for an active user. They're stored in a pushdown
stack, most recent on top (first), and the algorithm [1] that determines
the primary session for a user, for example, is written such that the
most recent session (i.e. connection) will win, as it gets retrieved
first and none of the other (older) sessions will beat it if they all
have the same prio.

[1] see js_session_primary() 

cheerio for now
dj



More information about the JDev mailing list