cz.vutbr.fit.healing
Class HealingYieldThreads

java.lang.Object
  extended by cz.vutbr.fit.healing.Healing
      extended by cz.vutbr.fit.healing.HealingYieldThreads

 class HealingYieldThreads
extends Healing

Method based on the utilization of other processors (cores) in the system. It starts threads and call yield to enable them to start.

Author:
zdenek
See Also:
HealingDummyThread

Constructor Summary
HealingYieldThreads()
           
 
Method Summary
protected  void afterNormalAccess(RDVariable rdv, RDThread rdt)
          Called after normal access to the variable.
protected  void beforeNormalAccess(RDVariable rdv, RDThread rdt)
          Called before normal access to the variable.
protected  void enterCriticSection(RDVariable rdv, RDThread rdt)
          Called before enter the critical section.
static void finalHealing()
          finalization of the method - empty by default
static void initHealing()
          initialization of the method - empty by default
protected  void leaveCriticSection(RDVariable rdv, RDThread rdt)
          Called after exit the critical section.
 
Methods inherited from class cz.vutbr.fit.healing.Healing
endHealing, getHealingMethod, isHealedVariable, startHealing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HealingYieldThreads

HealingYieldThreads()
Method Detail

initHealing

public static void initHealing()
initialization of the method - empty by default


finalHealing

public static void finalHealing()
finalization of the method - empty by default


enterCriticSection

protected void enterCriticSection(RDVariable rdv,
                                  RDThread rdt)
Called before enter the critical section.

Specified by:
enterCriticSection in class Healing
Parameters:
rdv - critical variable

leaveCriticSection

protected void leaveCriticSection(RDVariable rdv,
                                  RDThread rdt)
Called after exit the critical section.

Specified by:
leaveCriticSection in class Healing
Parameters:
rdv - critical variable

beforeNormalAccess

protected void beforeNormalAccess(RDVariable rdv,
                                  RDThread rdt)
Called before normal access to the variable.

Specified by:
beforeNormalAccess in class Healing
Parameters:
rdv - critical variable

afterNormalAccess

protected void afterNormalAccess(RDVariable rdv,
                                 RDThread rdt)
Called after normal access to the variable.

Specified by:
afterNormalAccess in class Healing
Parameters:
rdv - critical variable