Class VardanERSAP

java.lang.Object
java.lang.Thread
org.jlab.coda.emu.test.VardanERSAP
All Implemented Interfaces:
Runnable

public class VardanERSAP extends Thread
This class is an example of how one might take 2 producers (one for each ring) and have a consumer that reads one item from each ring and puts them both into a third, output ring. That output ring has a consumer that looks at each item in the output ring. Note: there are more efficient ways of programming this. This is the simplest and most straight forward. If it works, we can think about making it faster.
  • Constructor Details

    • VardanERSAP

      public VardanERSAP()
  • Method Details

    • run

      public void run()
      Run a setup with 2 crate producer threads, one crate consumer thread and one output ring consumer thread.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • main

      public static void main(String[] args)