[C Language] Dynamic allocation and release of memory

Personal homepage: Xiu Xiu Ye Column: C language Operating environment:Visual Studio 2022 ? Table of Contents What is dynamic allocation of memory? Memory dynamic allocation function malloc() calloc() realloc() Dynamic memory release function free() Common dynamic memory errors 1. Dereference operation of NULL pointer 2. Out-of-bounds access to dynamically opened space 3. Use free release […]

Install GMP, NTL, CTMalloc and compile OpenFHE

references: [ABB + 22] Al Badawi A, Bates J, Bergamaschi F, et al. Openfhe: Open-source fully homomorphic encryption library[C]//Proceedings of the 10th Workshop on Encrypted Computing & Applied Homomorphic Cryptography. 2022: 53 -63. openfheorg/openfhe-development Welcome to OpenFHE’s documentation! Install NTL library and compile and test on Ubuntu Install NTL library on Ubuntu Memory Optimization-How to […]

29. Blocked memory management [malloc, free]

There are many ways to implement memory management, but in the end they all need to implement two functions: malloc and free. The malloc function is used for memory application, and the free function is used for memory release. This article implements this through block memory management: It’s just that the allocation direction in the […]

Activiti process instances and task allocation

Article directory 1. Process examples 1.1. What is a process instance? 1.2. Associate the actual business with the activiti table (BusinessKey) 1.3. Suspend and activate process instance 1.3.1. All process instances hang 1.3.2. A single process instance hangs 2. Task allocation 2.1. Fixed allocation 2.2. UEL expression distribution 2.2.1. UEL-value method 2.2.2, UEL-method method 2.3. […]

Address book (structure and dynamic memory allocation example)

Implement an address book; Address book can be used to store information. Each person’s information includes: name, gender, age, phone number, and address. Provide method: Add contact information Delete specified contact information Find specific contact information Modify designated contact information Show all contact information Clear all contacts Sort all contacts by first name 1. The […]