Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT Oracle Coding Standard for Java
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT Oracle Coding Standard for Java
2 Rules
Rule 09. Locking (LCK)
LCK09-J. Do not perform operations that can block while holding a lock
Page Information
Title:
LCK09-J. Do not perform operations that can block while holding a lock
Author:
Ryan Hofler
Mar 29, 2009
Last Changed by:
Amy Gale
Mar 10, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/YTdGBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT Oracle Coding Standard for Java (1)
Page:
LCK00-J. Use private final lock objects to synchronize classes that may interact with untrusted code
Hierarchy
Parent Page
Page:
Rule 09. Locking (LCK)
Labels
Global Labels (5)
lck
android-applicable
dos-cc
rule
analyzable
Recent Changes
Time
Editor
Mar 10, 2025 21:46
Amy Gale
View Changes
Localize CodeSonar crossreferences to Java scope
Mar 05, 2025 11:46
Jill Britton
View Changes
Feb 14, 2025 15:51
David Svoboda
View Changes
Aug 06, 2021 09:04
Jon O'Donnell
View Changes
Jun 25, 2021 08:43
Svyatoslav Razmyslov
View Page History
Outgoing Links
External Links (10)
https://wiki.sei.cmu.edu/confluence/display/java/PVS-Studio
www.rgoarchitects.com/Files/fallacies.pdf
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
oreilly.com/catalog/javarmi/chapter/ch10.html
docs.oracle.com/javase/specs/jls/se8/html/jls-17.html
https://pvs-studio.com/en/docs/warnings/v6095/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://docs.oracle.com/javase/8/docs/api/java/lang/Object.…
https://www.sonarsource.com/products/codeanalyzers/sonarjav…
SEI CERT Oracle Coding Standard for Java (18)
Page:
CodeSonar
Page:
ThreadSafe_V
Page:
Parasoft_V
Page:
Rule AA. References
Page:
Klocwork_V
Page:
THI04-J. Ensure that threads performing blocking operations can be terminated
Page:
PVS-Studio_V
Page:
Parasoft
Page:
CodeSonar_V
Page:
SonarQube
Page:
THI03-J. Always invoke wait() and await() methods inside a loop
Page:
SonarQube_V
Page:
Klocwork
Page:
ThreadSafe
Home page:
SEI CERT Oracle Coding Standard for Java
Page:
THI02-J. Notify all waiting threads rather than a single thread
Page:
Rule BB. Glossary
Page:
LCK07-J. Avoid deadlock by requesting and releasing locks in the same order
SEI CERT C Coding Standard (2)
Page:
CON05-C. Do not perform operations that can block while holding a lock
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 94, "requestCorrelationId": "7f3290b367614860"}