INVESTIGATION OF THE DISPOSE-PATTERN ALGORITHM IN MAKING MEMORY MANAGEMENT DECISIONS IN THE .NET CLIENT-COMPONENT MODEL
UDC 519.6; 004.02
DOI:10.26102/2310-6018/2020.30.3.013
E.V. Popova
The paper presents a study of the Dispose-pattern algorithm, which is used in decision theory in problems of memory management of applications in .NET. In long running applications with excessive memory usage, there are prerequisites for the frequent launch of the garbage collector, which works with managed resources. Unmanaged resources without explicit cleanup can cause memory problems when the associated managed resources are disposed of. A block diagram of the cleaning method was compiled, an algorithm for using the Dispose-pattern in the client-component model was obtained. Quantitative values of various characteristics of the garbage collector are obtained, such as the amount of physical memory, the amount of processor time, the maximum pause of the process, etc. The data is collected on the basis of an application consisting of a component and a client written in C #, running in the Visual Studio environment. The component in question is compatible with the .NET Framework and is not a Component Object Model. The results of the application are compared with and without running the finalizer. The results obtained will help the decision-maker in choosing a criterion for assessing various methods of memory management, in the formation of a single-criterion or multi-criteria optimization model when making a decision.
Keywords: memory management method algorithm, decision making, Dispose-pattern, finalizer, client-component model.
Full text:
Popova_3_20_1.pdf