摘要 |
A main execution thread retrieves a data object from a comparatively slow, mass storage device as a series of data blocks and stores each data block within an addressable element of a global counted list stored in memory. The main execution thread initiates a communication thread for each recipient device. Each communication thread is initialized with the network address of a corresponding recipient device and a list of addresses for the counted list elements containing the data blocks of the data object to be distributed. The communication threads operate independently and in parallel to retrieve the data object blocks from the global list for transmission to their respective recipient devices. Distribution status of each data block is maintained using a counter, associated with each addressable element, that is initiated to the total number of recipient devices and decremented each time the data block within the addressable element is transmitted.
|