vscode debugging container (for rocksdb debugging) Reference links: https://blog.csdn.net/qq_29809823/article/details/128445308#t5 https://blog.csdn.net/qq_29809823/article/details/121978762#t7 Use the plug-in dev containers in vscode->click the remote resource manager on the left to open the container running rocksdb and configure the following files #Command line compilation by debugging cpp into an executable file, and debugging by setting launch.json and f5 root@62db0822831f:/# find . […]
Tag: fork
Linux system programming_process: C program space allocation, (v)fork, wait, exec, system, popen
1. Process related concepts (414.1) Question 1. What is a program, what is a process, and what is the difference? Program is a static concept, gcc xxx.c –o pro, the pro file is generated on the disk, which is called a program A process is a running activity of a program. In simple terms, when […]
Process termination, process waiting and fork(), wait(), waitpid()
Article directory 1. Process termination (1) Situation of process termination (2) How to terminate the process 2. Process waiting (1) Concept (2) Necessity (3) wait()–system call (4) waitpid()–system call (5) Get child process status 3. fork() function 1. Process termination (1) Process termination situation The code is run and the result is correct The code […]
Solving ForkingPickler(file, protocol).dump(obj) TypeError: cant pickle Environment objects
Table of Contents Solving ForkingPickler(file, protocol).dump(obj) TypeError: cant pickle Environment objects Error background Solution Summarize Solve ForkingPickler(file, protocol).dump(obj) TypeError: cant pickle Environment objects In Python parallel programming, if you need to transfer objects between multiple processes, you often use the pickle module to serialize and deserialize objects. However, sometimes when using pickle for serialization, you […]
Regarding the problem of printf in fork multi-process
About the problem of printf in fork multi-process Program 1 int main(int argc, char **argv) {<!– –> int remaining = 4; int child_pid; while (remaining > 0) {<!– –> child_pid = fork(); if (child_pid == 0) break; remaining–; } printf(“P”); return 0; } The above program will output: PPPPP (5 P) Program execution process: remain=4, […]
Fork and SourceTree version management tools failed to install and cannot be used.
Problem description The fork version management tool was working fine, but suddenly one morning it stopped working! I uninstalled the fork and reinstalled it several times to no avail, and no error log could be found. I switched to SourceTree version management tool and got the same error when installing it. I found the error […]
Use frida to spawn the child process of Fork
Index need test program Parent process code child process code x64dbg Plug-in function Start debugging frida Operating environment Files and code used Requirements Recently, I was learning basic Windows reverse engineering knowledge and encountered a small problem. How should a process created using CreateProcessW be attached at startup? I want to debug the function that […]
[Process Management] Understanding the system call function fork
Table of Contents Preface 1. Check the pid of the process 2. Father-son process 3. The second way to view the process 4. Code creation process – fork 1.Function of fork 2.The return value of fork 3. General writing method of fork code 5. Understanding of fork 1.What did the fork do? 2. Why does […]
29. Analysis of the working principle of thread pool ForkJoinPool
Analysis of working principle of thread pool ForkJoinPool Algorithm question: How to make full use of the performance of multi-core CPUs to quickly sort an array of 20 million sizes? Implemented based on merge sort algorithm Merge Sort is a sorting algorithm based on the divide and conquer idea The time complexity of merge sort […]
Fork() function: interaction between “parent” and “child” processes (creation of process)
Reading Navigation Preface 1. First introduction to fork function 1. Basic concepts 2. fork function return value 2. Copy-on-write of fork function 3. Summary Kind tips Foreword Earlier we talked about the basic knowledge of C language, also learned about some data structures, and talked about some knowledge about C++. We also learned some basic […]