摘要 |
A processing platform, for example a Java Enterprise Edition (JEE) platform comprises a JEE cluster (1) having a plurality of processors (3), which include a resource adapter (11) for handling events associated with one or more application sessions Si to Sn. Each application session Si to Sn comprises a session state (15) and an event queue (17), the event queue (17) containing a list of events to be executed for a particular one of the sessions S1 to Sn. A thread pool (19) comprises one or more processing threads t1 to tN for enabling the processor (3) to perform multiple tasks in parallel. The thread pool (19) comprises a task queue (21) containing the tasks to be executed by the processing threads t1 to tN. The resource adapter (11) comprises a synchronising unit (23) for controlling how the plurality of threads t1 to tN from the thread pool handle the events in the plurality of application sessions S1 to Sn. In particular, the synchronising 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), thereby preventing more than one event from a particular event queue of an application session being executed in parallel. |