![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
In this exercise you will observe the behavior of the distributed garbage collector and the local garbage collector working together to manage memory.
There is no code to write, but you have to
change the value of the constant
In this exercise there are two remote objects,
A remote object can implement the
The course material for this exercise is covered in Distributed Garbage Collector.
To run this exercise, you run
As you run this exercise, you may want to experiment with the setting of the
Java heap size (use the -mx command line argument) and you may wish to
explicitly set the DGC remote reference
where the unit of time for Back to TopSkeleton Code
Tasks
Change the value of the constant Compile all Java source files.
From the
Run two instances of the client. Where help exists, the task numbers above are linked to the step-by-step help page. Back to TopSolution Source
DemonstrationWhen the server is run in its DOS console, the output will be:
Then when the client is run in its DOS console, the output will be:
As the two clients run, each DOS console will display messages. The server console will display messages as follows: MessageObject: Class Number is #1882 Object Number is #1882 MessageObject: Unreferenced for object #: 1841 MessageObject: Finalize for object #: 893 Each of the client consoles will display an output similar to this: MessageObject: Class Number is #1882 Object Number is #1882 Observe how the Server console indicates when the GDC and local garbage collector are working. Next MagerciseExercisesShort CourseFeedbackBack to TopCopyright 1996-2000 jGuru.com. All Rights Reserved. |