Package jline.lang.state
Class ServerParallelism
java.lang.Object
jline.lang.state.ServerParallelism
Server parallelism at a CTMC station (
Queue.setServerParallelism),
port of Python api/state/server_parallelism.py.
A class-r job seizes n_r of the station's c servers when
it starts and holds them for its whole service, so each job contributes
n_r / c to the utilization. Served at FCFS, strictly: a departure
hands its freed servers to the head-of-line jobs, in order, for as long as
the head fits, and an arrival enters service only when nobody waits and its
n_r servers are free. A station can therefore hold waiting jobs next
to idle servers, which the population lattice does not enumerate, so the
state space is generated by reachability.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStation index, server count and per-class degrees (all at least 1). -
Method Summary
Modifier and TypeMethodDescriptionstatic Booleanfits(NetworkStruct sn, int ind, Matrix srv, Matrix var, int jobClass) Whether a class-jobClassjob finds its servers free at nodeind: busy servers plus held servers plusn_rwithin the server count; null at a station without parallelism.static doubleheld(NetworkStruct sn, int ind, ServerParallelism.Info info, Matrix spaceVar, int row) Servers held at nodeindby synchronous calls awaiting their REPLY, in rowrowof the local variablesspaceVar.static ServerParallelism.Infoinfo(NetworkStruct sn, int ind) The parallelism of nodeind, or null when every degree is 1.static doubleseff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, int i, int jobClass, double seff) Server bound the FCFS arrival compares rowi's jobs in service with: those jobs plus one when the arrival may start (nobody waits and its servers, net of those held for pending REPLY calls, are free), the jobs in service otherwise;seffunchanged at a station without parallelism.static doubleseff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, Matrix spaceVar, int i, int jobClass, double seff) Asseff(NetworkStruct, int, Matrix, Matrix, int, int, double), reading held servers fromspaceVar.static booleanValidate the parallel stations for a CTMC solve (Pythonctmc_parallelism); true when the model has any.
-
Method Details
-
info
The parallelism of nodeind, or null when every degree is 1. -
validate
Validate the parallel stations for a CTMC solve (Pythonctmc_parallelism); true when the model has any. -
held
public static double held(NetworkStruct sn, int ind, ServerParallelism.Info info, Matrix spaceVar, int row) Servers held at nodeindby synchronous calls awaiting their REPLY, in rowrowof the local variablesspaceVar. A calling job keeps then_rservers it seized until the reply returns, so each pending call of class r holdsn_rof them, not one (MATLABState.ctmcHeldServers). Withinfonull every degree is 1 and this is the plain count; 0 without a reply block. -
fits
Whether a class-jobClassjob finds its servers free at nodeind: busy servers plus held servers plusn_rwithin the server count; null at a station without parallelism. -
seff
public static double seff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, int i, int jobClass, double seff) Server bound the FCFS arrival compares rowi's jobs in service with: those jobs plus one when the arrival may start (nobody waits and its servers, net of those held for pending REPLY calls, are free), the jobs in service otherwise;seffunchanged at a station without parallelism. -
seff
public static double seff(NetworkStruct sn, int ind, Matrix spaceBuf, Matrix spaceSrv, Matrix spaceVar, int i, int jobClass, double seff) Asseff(NetworkStruct, int, Matrix, Matrix, int, int, double), reading held servers fromspaceVar.
-