The present invention discloses a memory sharing mechanism based on
priority elevation. In accordance with the present invention, there is
provided an apparatus and method for transporting packets of data in a
communication device, wherein each packet is assigned one of several
priorities and received based on memory state information. The method
comprises the steps of storing the received packets in a memory and
modifying the assigned priority of any of the packets causing congestion
within the memory.