aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Island of Isolation in GC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Island of Isolation in GC" Watch "Island of Isolation in GC" New topic
Author

Island of Isolation in GC

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Anyone,

Can you please explain me with pictures what exactly island of isolation of references is helpful with respect to garbage collection.
I appreciate your help.

Regards,
Jothi Shankar Kumar. S


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
There is a nice picture on page 250 of K & B 5.0. It's quite possible that it is also in the 1.4 version of the book because GC is a topic for SCJP 1.4.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
yogesh sood
Ranch Hand

Joined: Aug 31, 2000
Posts: 108
Hey Jothi !


I think i did tried diagram for this based on your previous request in post below check out this one too!
http://www.coderanch.com/t/259737/java-programmer-SCJP/certification/Garbage-collection


If its green its biology if its stinkks its chemistry if it has numbers it is Maths and if it doesn't work its TECHNOLOGY
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Barry,

Thanks for the post. But still I'm dubious about what that i2.n and i3.n and i4.n really means? n is already a reference declared as an instance variable and similarily i2, i3, i4 are also references declared locally inside the main method. So what it actually means by saying i2.n, i3.n and so on? Can you tell me this?

Regards,
Jothi Shankar Kumar. S
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Yogesh,

I'm not getting a clear picture from that diagram. Would you mind taking some time in redrawing the same diagram. I'm attaching the code below,



Thanks in advance.

Regards,
Jothi Shankar Kumar. S
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Yogesh,

I'm a great fan of you GC related diagrams. Please help me with this island of isolation pictorially (for the above code) and I will be clear with GC.

Regards,
Jothi Shankar Kumar. S
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Yogesh,

I had been to that article earlier. I did not find that quite useful. Can you please diagramatically show the GC process for the above mentioned code. That would really be og help to me man.

Regards,
Jothi Shankar Kumar. S
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Originally posted by Jothi Shankar Kumar Sankararaj:
Hi Barry,

Thanks for the post. But still I'm dubious about what that i2.n and i3.n and i4.n really means? n is already a reference declared as an instance variable and similarily i2, i3, i4 are also references declared locally inside the main method. So what it actually means by saying i2.n, i3.n and so on? Can you tell me this?

Regards,
Jothi Shankar Kumar. S


It looks to me as if you need help in the very basics of Java. These are just references to fields (members of a class). Have you had a more elementary introduction to Java? K & B are assuming that you know the very basic things before you read their book.
[ October 17, 2006: Message edited by: Barry Gaunt ]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Barry,

I know the basics in Java but I got confused when they say i3.i as i3 which is already a reference variable and we are using the . operator to make the variable i refer to the object created by i3. What really it means? How do you say that it is an island of isolation?

Regards,
Jothi Shankar Kumar. S
[ October 17, 2006: Message edited by: Jothi Shankar Kumar Sankararaj ]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9519
    
    2

Hi Ranchers,

Can anyone please please give me a pictorial representation of island of isolation in gc?

Regards,
Jothi Shankar Kumar. S
Mike Ngo
Ranch Hand

Joined: Oct 16, 2006
Posts: 89
It's fig 7.5 in the K & B book.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Island of Isolation in GC