Constraint issue with multidimensional array of queues

In reply to kishore_tavva:
In the below line, local_ch is 0,

foreach(page[local_ch][local_die]) {

Set local_ch to 1, and you will see your expected outcome.