diff --git a/graalpy/graalpy-micronaut-pygal-charts/README.md b/graalpy/graalpy-micronaut-pygal-charts/README.md index e16cba0e..d69d7881 100644 --- a/graalpy/graalpy-micronaut-pygal-charts/README.md +++ b/graalpy/graalpy-micronaut-pygal-charts/README.md @@ -42,4 +42,7 @@ The `DemoController` uses four services that all render the same XY chart using The `DemoTest` ensures that all four service implementations render the same XY chart. Run it with `./mvnw test`. -> Note: This demo uses a single [`GraalPyContext`](src/main/java/com/example/GraalPyContext.java), which can be accessed from only one thread at a time to evaluate Python code. Pure Python packages including Pygal can be used in multiple GraalPy contexts, for example one context per thread, to improve the throughput of the application. Other demos illustrate how to pool multiple contexts. +> Note: This demo uses a single [`GraalPyContext`](src/main/java/com/example/GraalPyContext.java), which can execute [Python code in only one thread at a time](https://docs.python.org/3/glossary.html#term-global-interpreter-lock). +> Threads running Python code are internally scheduled in round-robin fashion. +> Pure Python packages including Pygal can be used in multiple GraalPy contexts, for example one context per thread, to improve the throughput of the application. +> Other demos such as [`graalwasm-micronaut-photon`](../graalwasm/graalwasm/graalwasm-micronaut-photon) illustrate how to pool multiple contexts. diff --git a/graalpy/graalpy-spring-boot-pygal-charts/README.md b/graalpy/graalpy-spring-boot-pygal-charts/README.md index fc0a5c12..349381e5 100644 --- a/graalpy/graalpy-spring-boot-pygal-charts/README.md +++ b/graalpy/graalpy-spring-boot-pygal-charts/README.md @@ -42,4 +42,7 @@ The `DemoController` uses four services that all render the same XY chart using The `DemoApplicationTests` ensures that all four service implementations render the same XY chart. Run it with `./mvnw test`. -> Note: This demo uses a single [`GraalPyContext`](src/main/java/com/example/demo/GraalPyContextConfiguration.java), which can be accessed from only one thread at a time to evaluate Python code. Pure Python packages including Pygal can be used in multiple GraalPy contexts, for example one context per thread, to improve the throughput of the application. Other demos illustrate how to pool multiple contexts. +> Note: This demo uses a single [`GraalPyContext`](src/main/java/com/example/demo/GraalPyContextConfiguration.java), which can execute [Python code in only one thread at a time](https://docs.python.org/3/glossary.html#term-global-interpreter-lock). +> Threads running Python code are internally scheduled in round-robin fashion. +> Pure Python packages including Pygal can be used in multiple GraalPy contexts, for example one context per thread, to improve the throughput of the application. +> Other demos such as [`graalwasm-micronaut-photon`](../graalwasm/graalwasm/graalwasm-spring-boot-photon) illustrate how to pool multiple contexts. \ No newline at end of file