joe_blaze
Joined: 11 Feb 2007 Posts: 230 Location: Box 361 Brielle, NJ 08730-0361
|
Posted: Fri Jul 09, 2010 10:08 UTC Post subject: APLNextSupervisor - Sample1 |
|
|
Attached is a zip-format file containing Sample1 for the APLNext Supervisor. The sample application illustrates how an APL+Win application could incorporate asynchronous calculation elements to improve performance.
This sample includes the APL+Win 'kernel' function and an APL+Win 'controlling application' to illustrate how an APL+Win application can take advantage of multi-processor hardware.
In addition the sample includes a C# .Net 4.0 'controlling application' project which uses the APLNext Supervisor to call the APL+Win 'kernel' function to perform calculations asynchronously.
Review the included Sample1ReadMe.txt file and the APLNext Supervisor documentation for additional information.
This example is designed to be a very simple illustration of how an application system could be re-purposed to use multi-threading. In this example the processing work performed by the 'kernel' function is, by design, trivial and the number of executions of the 'kernel' function is, by design, small.
The potential benefits of multi-threading are balanced against the overhead of marshalling the data between the controlling application and the kernel function. Thus multi-threading will generally benefit an application system only if the kernel function performs significant processing and the kernel function will be executed many times. _________________ Bringing APL into the .Net mainstream! Ask me about the VisualAPL application software development environment that is fully integrated with Microsoft Visual Studio. |
|