摘要 |
The present invention discloses a solution for using an unsynchronized event pool in an IM gateway. In the solution, a set of object pools can be established, each including a set of event objects ordered relative to each other in a circular fashion. The IM gateway can detect an incoming message. A CPU processing thread for handling the incoming message can be determined. One of the unsynchronized event object pools associated with the thread can be ascertained. A current one of the ordered event objects within the pool can then be determined. The current one can be an object ordered after a last event object used from the pool. The thread can utilize the determined event object to handle a task for the incoming message, which negates a need and a time to create a new event object for the thread.
|