The article will give the code about four ways to loop over a Vector. In the meantime, I also calculate the time for looping over…
This article introduces you how to build Windows 10 kernel driver development Environment, install drivers and build debug environment. Below are the softwares for building…
Memory Allocation of a C Program Historically, a C program has the following parts: Text segment. Initialized data segment. Uninitialized data segment. Stack Heap Below…
Background I did the following operations, but got an unexpected result. Use fopen function to open a file. Use fprintf function to write two integers…
Question: Write a program to test the five functions mentioned in APUE(TELL_WAIT, TELL_CHILD, TELL_PARENT, WAIT_PARENT, WAIT_CHILD). This process to create a file, write an integer…
Background My program has been writing to the SQLite database, which is fine. But when another program (another process) reads, after a period of time,…
When developing programs under Linux, especially server-side programs, it is always in a loop. If it is found that there is no problem when the…
Background: Recently, I was developing a C program in Linux and I met an issue – CPU usage is too high. I spent some time…
Requirement: In a project, we need to add some compile flags in order to meet the security requirement or other reasons. In my project, there are…
When I finished install Ubuntu 16.04 and minicom package, I’d like to use minicom to access the ttyUSB device. I found there was nothing output…