摘要 |
PROBLEM TO BE SOLVED: To provide a method and apparatus for synchronizing processing of events in a processing platform in a way that yields better resource efficiency.SOLUTION: A resource adapter (11) for handling application sessions has one or more application sessions Si to Sn. Each event queue (17) contains a list of events to be executed for a particular one of the application sessions S1 to Sn. A thread pool (19) has one or more processing threads t1 to tN for enabling the processor (3) to perform multiple tasks in parallel. The thread pool (19) also has a task queue (21) containing multiple tasks to be executed by the processing threads t1 to tN. A synchronizing unit (23) is configured such that only one event queued in an event queue (17) has a task scheduled thereto in the task queue (21). |