openwrt development summary using pthread to realize socket multi process server
At the beginning of last year, there were a lot of code written in openwrt, although I felt sorry that there was a lot of code written in openwrt in the early days of the company.
Let's briefly introduce the socket multi process server on openwrt.
Look at the code
This is c language code. The code written at that time was not very good. Don' ...
Added by breath18 on Thu, 17 Feb 2022 14:27:35 +0200
Nodejs play process
First of all, we should know that node is executed by single thread, but today's computer has developed to multi-core CPU. Therefore, it has become an important problem to solve the problem of node using multi-core CPU server.
I Multi process architecture
Analysis: in master JS folder, through child_process to copy sub processes, and os to ac ...
Added by Rianna on Fri, 04 Feb 2022 05:36:00 +0200
Linux multiprocess programming
fork system call
#include <sys/types.h>
#include <unistd.h>
/* Clone the calling process, creating an exact copy.
Return -1 for errors, 0 to the new process,
and the process ID of the new process to the old process. */
extern __pid_t fork (void) __THROWNL;
Each call of this function returns twice. In the parent process, t ...
Added by brettpower on Thu, 03 Feb 2022 15:06:32 +0200
Python Simpy simulation enables AGV to run to the specified power to charge
Python Simpy simulation of AGV running process
1, Achieve the purpose
simpy provides a discrete-time simulation library. I want to use this simulation library to simulate the operation process of AGV in the workshop. A simple scenario can be described as: the simulation time starts, the AGV with an initial power of a certain value starts to r ...
Added by departedmind on Mon, 31 Jan 2022 08:50:40 +0200
[linux] process control
[linux] process control
01. Process number correlation function
getpid function
pid_t getpid(void);
Function:
Get this process number( PID)
Parameters:
nothing
Return value:
This process number
getppid function
pid_t getppid(void);
Function:
Gets the parent process number of the process calling this function( PPID)
Parame ...
Added by simmsy on Sun, 30 Jan 2022 14:11:48 +0200
PV operation postgraduate entrance examination notes
PV operation questions
PV operation knowledge structure
the dining philosophers problem
Problem Description:
Have n (n)
≥
\ge
≥ 3) philosophers sit around a round table, and each philosopher eats and thinks alternately. There is m(m) in ...
Added by olechka on Thu, 23 Dec 2021 03:57:41 +0200