The optimal implementation of n FIFO-queues in single-level memory.
- Prof. A.V. Sokolov, A.V. Drac
The optimal implementation of n FIFO-queues in single-level memory. - - PowerPoint PPT Presentation
The optimal implementation of n FIFO-queues in single-level memory. Prof. A.V. Sokolov, A.V. Drac IAMR KarRC RAS, Petrozavodsk State University, Petrozavodsk. AMICT 2010 Petrozavodsk. Introduction In many applications there is a problem
Figure 1: The consecutive implementation
Figure 2: The linked list implementation
Figure 3: n = 2, m = 17, k1 = 10, k2 = 7
n
i = s
n
k1+···+kn=m n
n−1
n−1
i = (m + n)√pi n
n
i + 1 = n
n
k1+···+kn=m n
i(ki)
i is the part of time which i-th queue is situated in the state of “reset tail“.
1≤i≤n(p∗ i(ki) − p∗ i(ki + 1))
n
l))
Figure 4: n = 2, M = 7
n
i n
j=i
n
i
n
j=i
n
i s
j=i
i s
j=i
n
l → (p1 + · · · + pn)
c < P ∗ l even when the size of memory is rather small
c ≤
l =
c < P ∗ l
c ≈
n
pi)
n
pi)
l = O