The present invention is in the field of digital processing and pertains to apparatus and methods for processing packets in routers and other machines connected to packet networks, and more particularly to apparatus and methods for optimal selection of available contexts, especially in dynamic multistreaming processors.