Research Article
Adjustable Two-Tier Cache for IPTV Based on Segmented Streaming
Algorithm 2
The algorithm to adjust the sizes of caches L1 and L2.
If(){ // if cache L1 is not enough | While(){ | Select recently-used segments in cache L2 to move to the bottom of cache L1. | Update current cache sizes of caches L1 and L2. | Elsif(){ | While (){ | Select seldom-used segments in cache L1 to move to the top of cache L2. | Update current cache sizes of caches L1 and L2.}} |
|