---
title: "Discussion on \"26 Java - Multithreading 3 (Custom Locks)\" | Hashnode"
description: "Discussion on \"26 Java - Multithreading 3 (Custom Locks)\". Monitor Lock\n\nLocking do not depends on Object like synchronized method.\n\nsynchronized method puts the monitor lock on the object\n\n\nsynchronized {\n...\n..Critical Section..\n...\n}\n\nExample (Synchronized)\npublic class SharedResource {\n\n    boolean isAva..."
url: "https://hashnode.com/posts/26-java-multithreading-3-custom-locks/668a498d5fca93d650c0c787"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [26 Java - Multithreading 3 (Custom Locks)](https://chetan77.hashnode.dev/26-java-multithreading-3-custom-locks?utm_source=hashnode&utm_medium=feed)

Monitor Lock Locking do not depends on Object like synchronized method. synchronized method puts the monitor lock on the object synchronized { ... ..Critical Section.. ... } Example (Synchronized) public class SharedResource { boolean isAva...

Jul 7, 2024 · 7 min read · chetan77.hashnode.dev  
Read the article

-   [#reentrantlock](https://hashnode.com/tag/reentrantlock)
-   [#readwritelock](https://hashnode.com/tag/readwritelock)
-   [#optimistic-reading](https://hashnode.com/tag/optimistic-reading)
-   [#locks](https://hashnode.com/tag/locks)
-   [#multithreading](https://hashnode.com/tag/multithreading)
-   [#condition](https://hashnode.com/tag/condition)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
