COMMUNICATION AMONG EXECUTION THREADS OF AT LEAST ONE ELECTRONIC DEVICE
First Claim
1. A method of communication in at least one electronic device, the method comprising:
- in the at least one electronic device, creating a first execution thread and a second execution thread;
in the at least one electronic device, creating a message service for receiving messages for the first thread;
in the at least one electronic device, generating in the second thread a message to be transferred to the message service of the first thread;
in the at least one electronic device, selecting one of multiple data transfer mechanisms for transferring the message to the message service of the first thread based on a relationship between the first thread and the second thread, wherein the selecting is not performed under control of the first thread or the second thread, and wherein the relationship between the first thread and the second thread consists of one of the first thread and the second thread executing within a single process, the first thread and the second thread executing in different processes of the same electronic device, and the first thread and the second thread executing within different electronic devices;
in the at least one electronic device, transferring the message to the message service of the first thread by way of the selected data transfer mechanism; and
in the at least one electronic device, processing the message in the first thread in response to the message being transferred to the message service of the first thread.
3 Assignments
0 Petitions
Accused Products
Abstract
A method of communication in at least one electronic device is presented. In the method, a first execution thread and a second execution thread are created in the at least one electronic device. Also created is a message service for receiving messages for the first thread. A message to be transferred from the second thread to the message service of the first thread is generated. Outside of control by either the first or second threads, one of multiple data transfer mechanisms is selected for transferring the message from the second thread to the message service of the first thread based on a relationship between the first and second threads. This relationship may be one in which the first and second threads are executing within a single process, within different processes of the same device, or within different devices. The message is transferred to the message service of the first thread using the selected data transfer mechanism and processed in the first thread.
37 Citations
20 Claims
-
1. A method of communication in at least one electronic device, the method comprising:
-
in the at least one electronic device, creating a first execution thread and a second execution thread; in the at least one electronic device, creating a message service for receiving messages for the first thread; in the at least one electronic device, generating in the second thread a message to be transferred to the message service of the first thread; in the at least one electronic device, selecting one of multiple data transfer mechanisms for transferring the message to the message service of the first thread based on a relationship between the first thread and the second thread, wherein the selecting is not performed under control of the first thread or the second thread, and wherein the relationship between the first thread and the second thread consists of one of the first thread and the second thread executing within a single process, the first thread and the second thread executing in different processes of the same electronic device, and the first thread and the second thread executing within different electronic devices; in the at least one electronic device, transferring the message to the message service of the first thread by way of the selected data transfer mechanism; and in the at least one electronic device, processing the message in the first thread in response to the message being transferred to the message service of the first thread. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A computer-readable storage medium having encoded thereon instructions executable by at least one processor of an electronic device to perform a method of communication, the method comprising:
-
creating a first execution thread and a second execution thread; creating a message service for receiving messages for the first thread; generating in the second thread a message to be transferred from the second thread to the message service of the first thread; selecting one of multiple data transfer mechanisms for transferring the message from the second thread to the message service of the first thread based on a relationship between the first thread and the second thread, wherein the selecting is not performed under control of the first thread or the second thread, and wherein the relationship between the first thread and the second thread consists of one of the first thread and the second thread executing within a single process, the first thread and the second thread executing in different processes of the electronic device, and the first thread executing within another electronic device while the second thread executes within the first electronic device; transferring the message to the message service of the first thread by way of the selected data transfer mechanism; and processing the message in the first thread in response to the message being transferred to the message service of the first thread.
-
-
15. An electronic system, comprising:
-
an electronic device comprising a computer-readable storage medium and at least one processor; wherein the computer-readable storage medium further comprises an operating system, an abstraction layer, and application code to be executed on the at least one processor, wherein the abstraction layer is configured to interact with the operating system, and wherein the abstraction layer provides at least one utility for the application code to; create a first execution thread and a second execution thread; create a message service for receiving messages for the first thread; generate from the second thread a message to be transferred to the message service of the first thread; transfer the message to the message service of the first thread by employing one of multiple data transfer mechanisms provided by the operating system; and process the message in response to the transfer of the message to the message service of the first thread; wherein the abstraction layer selects the employed data transfer mechanism based on a relationship between the first thread and the second thread, wherein the relationship between the first thread and the second thread consists of one of the first thread and the second thread executing within a single process of the electronic device, and the first thread and the second thread executing in different processes of the electronic device. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification