Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Reentrancy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic


Shaik Muhammad
Ranch Hand

Joined: Jul 16, 2008
Posts: 36

What is Reentrancy? How does Reentrant lock differ from ordinary synchronized block. pl explain
Ankit Garg

Joined: Aug 03, 2008
Posts: 9466

Shaik if you tried a google search

reentrancy java

then the first result would give you this

All Java methods are automatically reentrant. It means that several threads can be executing the same method at once, each with its own copy of the local variables. In the olden days of IBM 360 mainframes, which had no hardware stacks, reentrancy did not come out in the wash, and you had to take special time-consuming measures to make just the methods reentrant that needed it.

Also I don't think that this is related to SCJP...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

Please do not post the same question multiple times.It only wastes the useful time of other ranchers and reduces the number of responses you get. Read this for more information.

I am closing this one for you and we will continue the discussion in this thread .

|Asking Good Questions|
I agree. Here's the link:
subject: Reentrancy
It's not a secret anymore!