Patent ID: 7904904

Claim:
A method of processing platform-specific events by a virtual machine that operates on a first platform, wherein said virtual machine concurrently supports a first task and a second task, said method comprising: simultaneously receiving, by the virtual machine, a plurality of platform-specific events which are associated with the first platform, wherein each said platform-specific event is an external event initiated externally to said virtual machine; concurrently selecting, for each said platform-specific event, a selected task that defines which of said first and second tasks should process said platform-specific events; simultaneously manipulating each said platform-specific event received by modifying a data structure of each said platform-specific event to comply with a data structure format supported by said selected task, thereby representing each said platform-specific event in a form that is accessible by said selected task; assigning a platform-specific event-repository to said selected task, wherein said platform-specific repository provides event storage prior to processing by said selected task: providing a platform-specific event-handler for said selected task; using a platform-specific event-dispatcher, placing said platform-specific event in said platform-specific event-repository and invoking said platform-specific event-handler to initiate processing of said platform-specific event said selected task; and processing each said platform-specific event by said selected task.