Asynchronous method invocation in Join java and polyphonic c
Kamalakshi N Dr.H.Naganna · 2010
In most programming languages a called method is executed synchronously, i.e. in the of execution from which it is invoked. If the method needs a long time to completion, e.g. because it is loading data over the internet, the calling is blocked until the method has finished. When this is not desired, it is possible to start a worker thread and invoke the method from there. In most programming environments this requires many lines of code, especially if care is taken to avoid the overhead that may be caused by creating many threads. AMI solves this problem in that it augments a potentially longrunning (synchronous) object method with an variant that returns immediately, along with additional methods that make it easy to receive notification of completion, or to wait for completion at a later time. This paper focuses on asynchronous method invocation in two popular languages Join java and C# .