Dynamic memory management

The C library function void *malloc(size_t size) allocates the required memory space and returns a pointer to it. statement The following is the declaration of the malloc() function. void *malloc(size_t size) parameter Size – the size of the memory block, in bytes. Return value This function returns a pointer to the allocated size of me ...

Posted by 40esp on Sun, 27 Feb 2022 05:38:39 +0100

Using bash script to establish local update source for Manjaro

As a school with insufficient funds, the infrastructure of our school is relatively backward. There are more than 100 machines in the computer room for students, but the total bandwidth of the Internet is still only 10Mb. Some students saw that I was using Manjaro and were interested in learning Manjaro, but found that the installation of softw ...

Posted by gclx on Sun, 27 Feb 2022 05:38:21 +0100

SpringBoot integration MinIO practice

background MinIO is the world's leading object storage pioneer, with read / write speeds of 183 GB / s and 171 GB / s on standard hardware. MinIO is used as the main storage of cloud native applications. Compared with traditional object storage, cloud native applications need higher throughput and lower latency. By adding more clusters, you ca ...

Posted by johncox on Sun, 27 Feb 2022 05:34:17 +0100

[FreeRTOS learning plan] section V Protection of critical sections

What is critical section A critical segment is a piece of code that cannot be interrupted by internal interrupts during execution. In FreeRTOS, the most common critical segment is the operation of global variables. Global variables are like a gun handle. Anyone can shoot him, but when I shoot, you can't shoot, otherwise you don't know who hit ...

Posted by bubblybabs on Sun, 27 Feb 2022 05:32:29 +0100

[Blue Bridge Cup] Langton ant

Langton ant, proposed by Chris Langton in 1986, belongs to a kind of cellular automata. The square grid on the plane is filled with black or white. There is an "ant" in one of the squares. The direction of the ant's head is: up, down, left and right. The movement rules of ants are very simple: If the ant is in a black grid, turn 90 de ...

Posted by briant on Sun, 27 Feb 2022 05:23:03 +0100

[fundamentals of C language 11: string function and memory function] string function simulation, character function explanation and memory function simulation

String function The processing of characters and strings in C language is very frequent, but C language itself has no string type. Strings are usually placed in constant strings or character arrays. A constant string applies to string functions that do not modify it /* * character string * - A string of characters ending with '\ 0'. 0 is th ...

Posted by Mr. R on Sun, 27 Feb 2022 05:17:39 +0100

06_ 03_ Spring MVC task 2: advanced spring MVC (ajax asynchronous interaction, RESTful programming style, file upload, exception handling, interceptor)

Task 2: Spring MVC advanced Main contents of course tasks: ajax asynchronous interactionRESTfulFile uploadexception handlingInterceptor An ajax asynchronous interaction By default, spring MVC uses MappingJackson2HttpMessageConverter to convert json data, which needs to be added to jackson's package; Use < MVC: annotation driven / &g ...

Posted by ipwnzphp on Sun, 27 Feb 2022 05:15:03 +0100

Sort - quick sort (fast and slow pointer Implementation)

The two solutions of too fast scheduling summarized before can be used as a reference Two common solutions of fast scheduling Recently, I found another method that is easier to understand. Make a record here. This is a method of using "fast and slow pointer comparison" to realize the fast sorting algorithm. The key to realize the qu ...

Posted by dnoonan on Sun, 27 Feb 2022 05:13:03 +0100

[Blue Bridge Cup] Q & A

answering question have n n n students asked the teacher to answer questions at the same time. Each student has estimated the time of answering questions in advance. The teacher can arrange the order of answering questions, and the students should enter the teach ...

Posted by imderek on Sun, 27 Feb 2022 05:08:29 +0100

stm32 basic timer

Timer classification stm32f1 series, 8 timers, basic timer (TIM6,7), general timer (TIM2,3,4,5) and advanced timer (TIM1,8). Basic timer: a 16 bit timer that can only count up. It can only be timed without external IO General timer: 16 bit timer that can count up / down, timing, output comparison and input capture. Each timer has 4 external ...

Posted by ilight on Sun, 27 Feb 2022 05:07:14 +0100