Class LayeredCQExamples

java.lang.Object
jline.examples.java.advanced.LayeredCQExamples

public class LayeredCQExamples extends Object
Examples demonstrating layered queueing networks with contention queues (CQ). This class provides Java implementations corresponding to the example notebooks in jline.examples.java.advanced.layeredCQ package.
  • Constructor Details

    • LayeredCQExamples

      public LayeredCQExamples()
  • Method Details

    • lcq_singlehost

      public static void lcq_singlehost() throws Exception
      Demonstrates a layered CQ model with a single host (lcq_singlehost.ipynb). This example shows a basic layered queueing network where software tasks execute on a single host. The model captures both software contention (at the task level) and hardware contention (at the host level), typical in client-server architectures. Features: - Single host with multiple software tasks - Nested queueing structure (software and hardware layers) - Analysis of software bottlenecks vs. hardware bottlenecks - Mean value analysis for layered networks
      Throws:
      Exception - if the solver encounters an error
    • lcq_threehosts

      public static void lcq_threehosts() throws Exception
      Demonstrates a layered CQ model with three hosts (lcq_threehosts.ipynb). This example extends the single host case to a distributed system with three hosts. Different software tasks are deployed on different hosts, creating a more complex interaction pattern typical of multi-tier architectures. Features: - Three hosts with distributed software tasks - Inter-host communication patterns - Analysis of distributed system bottlenecks - Load balancing considerations in layered networks
      Throws:
      Exception - if the solver encounters an error
    • lcq_async_cache

      public static void lcq_async_cache() throws Exception
      Layered cache queueing model with ASYNCHRONOUS (non-blocking) cache access (lcq_async_cache.m). The client makes an asynchronous call to the cache and continues without waiting for the reply, which is what a prefetch or a cache warm-up does; the cache still resolves the request through POST_CACHE hit/miss branching. Compare with lcq_singlehost(), whose call is synchronous.
      Throws:
      Exception - if the solver encounters an error
    • main

      public static void main(String[] args)
      Main method to run all layered CQ examples.
      Parameters:
      args - command line arguments (not used)