Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

Reentrancy

 
Shaik Muhammad
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Report post to moderator

What is Reentrancy? How does Reentrant lock differ from ordinary synchronized block. pl explain
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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...
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic