java:java
Differences
This shows you the differences between two versions of the page.
java:java [2022/07/26 06:53] – [Using external libraries for coding java with eclipse] admin | java:java [2022/10/29 16:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 562: | Line 562: | ||
* **Atomic variables** have features that minimize synchronization and help avoid memory consistency errors. | * **Atomic variables** have features that minimize synchronization and help avoid memory consistency errors. | ||
* **ThreadLocalRandom** (in JDK 7) provides **efficient generation of pseudorandom numbers from multiple threads**. | * **ThreadLocalRandom** (in JDK 7) provides **efficient generation of pseudorandom numbers from multiple threads**. | ||
- | === Executor Interfaces === | + | |
- | === Thread pools === | + | ==== Thread pools ==== |
+ | {{: | ||
refer: | refer: | ||
- | * https://docs.oracle.com/javase/ | + | * https://www.baeldung.com/thread-pool-java-and-guava |
- | * http:// | + | |
* http:// | * http:// | ||
+ | * http:// | ||
Thread pools address two different problems: | Thread pools address two different problems: | ||
* They usually provide improved performance when **executing large numbers of asynchronous tasks**, due to reduced per-task invocation overhead | * They usually provide improved performance when **executing large numbers of asynchronous tasks**, due to reduced per-task invocation overhead | ||
Line 1249: | Line 1250: | ||
refer: | refer: | ||
* https:// | * https:// | ||
- | * http:// | ||
- | * https:// | ||
- | * {{: | ||
* {{: | * {{: | ||
+ | * {{: | ||
- | ==== Hibernate connection pooling | + | ==== Default |
- | Below are basic steps config for connections in Hibernate(each connection in MySQL was a session in Hibernate): | + | Below are basic steps config for connections in Hibernate(each connection in MySQL was a session in Hibernate)(refer: https:// |
- Config max connections in MySQL: | - Config max connections in MySQL: | ||
* config temporary in MySQL Admin console:< | * config temporary in MySQL Admin console:< | ||
Line 1287: | Line 1286: | ||
} | } | ||
</ | </ | ||
- | === Default JDBC Connection and Default Connection Pool=== | ||
Most important Hibernate JDBC properties:< | Most important Hibernate JDBC properties:< | ||
< | < | ||
Line 1296: | Line 1294: | ||
< | < | ||
</ | </ | ||
- | === org.hibernate.connection.C3P0ConnectionProvider with c3p0 connection pool === | + | ==== org.hibernate.connection.C3P0ConnectionProvider with c3p0 connection pool ==== |
refer: | refer: | ||
* https:// | * https:// |
java/java.1658818411.txt.gz · Last modified: 2022/10/29 16:15 (external edit)