aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply locked New topic
Author

Reentrancy

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
Sheriff

Joined: Aug 03, 2008
Posts: 9280
    
  17

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
Bartender

Joined: Jun 06, 2007
Posts: 2712
    
    5

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 .


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reentrancy
 
Similar Threads
What is Reentrancy?
Re entrant
BeanNotReentrantException
Some questions about transactions and reentrancy
reentrant???