Title :
Benefits of the use of asynchronous methods in a WCF service and its client, synchronizing resource access between these methods
Author_Institution :
Fac. of Econ. Inf., Univ. of Econ. in Bratislava, Bratislava, Slovakia
Abstract :
This paper shortly describes creating asynchronous methods by delegates, the locking techniques and locking a shared resource by an instance method using the Monitor. Enter and Monitor. Exit member methods of the Monitor class. The paper demonstrates the use of asynchronous methods and locking shared resources in the distributed .NET application which consists of the Windows Communication Foundation (WCF) service with threaded method and the threaded Windows Forms client. The sample distributed .NET application was built in the C# language and in the Microsoft Visual Studio 2013 development environment. This distributed .NET application computes the definite integrals values of the function f(x) = x/(1 + x2) by the trapezoidal rule in a threaded serial method of the WCF service and in a threaded serial method of the Windows Forms client. This client keeps the responsiveness of its user interface during executing an asynchronous call by asynchronous methods, locks and unlocks shared resources by its methods using Monitor. Enter and Monitor. Exit member methods of the Monitor class. In military mechatronic systems it is often necessary to determine dynamic parameters of mechanical parts, i.e. solids of these systems, such as a moment of inertia or a rotational kinetic energy of these solids. If such a solid is the solid of revolution created by the revolution of the area under the curve of a function f(x) within an interval <;a, b> around the x axis to calculate the moment of inertia and rotational kinetic energy of such the solid it is needed to calculate the value of the definite integral of this function on this interval. Our distributed .NET application is able to calculate the value of the definite integral of the function f(x) = x/(1 + x2). After our application extension about methods for computing values of the definite integrals of other functions this application can be a part of the control software of the mechatronic system o- some military assembly. This control software can monitor the dynamic parameters of particular solids of this system by this application then.
Keywords :
mechatronics; military computing; network operating systems; Microsoft Visual Studio 2013; WCF service; Windows Communication Foundation; Windows Forms client; asynchronous methods; control software; distributed .NET application; exit member methods; military mechatronic systems; monitor class; resource access; shared resource; Contracts; Instruction sets; Kinetic energy; Libraries; Monitoring; Solids; Synchronization; WCF Service; asynchronous instance method; distributed application architecture; locking; numerical integration; secondary thread; synchronization; trapezoidal rule;
Conference_Titel :
Military Technologies (ICMT), 2015 International Conference on
Conference_Location :
Brno
Print_ISBN :
978-8-0723-1976-3
DOI :
10.1109/MILTECHS.2015.7153761