Due:
Friday October 26th during scheduled recitation time.
Research the various heap allocation algorithms, such as first fit, best-fit,
the Buddy System, Fibonacci heap, etc. Discuss their pros and cons. When
would certain algorithms be better than others (words being of uniform size,
having an abundance of small objects and a few large, having many small,
having many large, etc.)?
Kristin Burke
Due:
Friday October 26th during scheduled recitation time.
implementation,
such as BSD malloc. Information on both topics can be
found
via the web.
Due:
Friday October 26th during scheduled recitation time.
that
Java employs to conserve data integrity (semaphores, monitors, etc.).
Due:
Friday October 26th during scheduled recitation time.
Read section 7.7.3 of the textbook.
Discuss
garbage collection as presented here, and the topics of reference counts
and
mark-and-sweep
colletion.
Due:
Friday October 26th during scheduled recitation time.
memory
management, such as speed, locality, fragmentation, etc.
Due:
Friday October 26th during scheduled recitation time.
each
C program. Here malloc use is inexpensive.
Investigate
a C implementation to determine the cost of using malloc as
provided in C for this purpose. Compare that cost to
an implementation
of
a heap and a malloc that you could do
yourself as part of your program.
Assume
all the blocks are of the same size (all of your artificial mallocs
will
allocate the same size block) and assume unlimited space (design your
implementation to stay within your preallocated space).
Due:
Friday October 26th during scheduled recitation time.
Due:
Friday October 26th during scheduled recitation time.
Compare the overloaded and polymorphism method in C/C++ and Java. If necessary, ask the instructor
for advice on this topic.