-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an explanation for
ThreadPriorityCheck
Fixes #1503 PiperOrigin-RevId: 350677546
- Loading branch information
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Don't rely on the thread scheduler for correctness or performance. Instead, | ||
ensure that the average number of runnable threads is not significantly greater | ||
than the number of processors, i.e. by using the executor framework and an | ||
appropriately sized thread pool. | ||
|
||
For more information, see [Effective Java 3rd Edition §84][ej3e-84]. | ||
|
||
[ej3e-84]: https://books.google.com/books?id=BIpDDwAAQBAJ |