主权项 |
1. A multi-core system for processing a plurality of threads, the multi-core system comprising:
a memory for storing the plurality of threads, a plurality of data packets, and a plurality of buffer descriptor (BD) rings corresponding to the plurality of threads, wherein each BD ring includes a plurality of BDs, and wherein a BD corresponds to a data packet; a host processor coupled to the memory and having a plurality of cores,
wherein the host processor is configured for processing the plurality of threads, wherein each of the plurality of cores execute at least one thread of the plurality of the threads,generating a set of context switch events based on execution states of the plurality of threads,identifying the set of context switch events,identifying a set of threads of the plurality of threads based on the set of context switch events,identifying a set of BD rings of the plurality of BD rings corresponding to the set of threads,generating a notification command indicative of the set of BD rings and the set of context switch events, andtransmitting the notification command; and a co-processor, connected to memory and to the host processor for receiving the notification command, polling the set of BD rings based on the notification command, and processing a set of data packets corresponding to the set of BD rings. |