{ int count; int loop; PRLIST_ENTRY ListHead, current; for(loop = LOW_REALTIME_PRIORITY; loop < HIGH_PRIORITY; loop++){ count =0; ListHead= &Prcb->DispatcherReadyListHead[loop]; current= ListHead->Flink; while(current && current != ListHead){ count++; current = current->Flink; } if(count > 1){ DbgPrint("Priority %d has %d threads\n",loop,count ); } } }