Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
YiRanCN committed Oct 27, 2023
1 parent e2045f8 commit e1a7542
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/study/program/CPP/CGI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 参考

- [CSDN-C/C++编程:CGI 与 fastCGI](https://blog.csdn.net/zhizhengguan/article/details/118519124)
29 changes: 29 additions & 0 deletions docs/study/program/CPP/CPP进程间通信.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# C++进程间通信

### 管道

管道(Pipe):是一种半双工的通信方式,适用于具有亲缘关系的两个进程之间的通信。管道分为匿名管道和命名管道。

### 共享内存

共享内存(Shared Memory):是一种高效的进程间通信方式,可以在多个进程之间共享同一块内存区域,需要使用信号量等同步机制保证数据的正确性。

### 消息队列

消息队列(Message Queue):是一种可靠的进程间通信方式,允许一个进程向消息队列发送消息,另一个进程从该队列接收消息。

### 信号量

信号量(Semaphore):是一种特殊的变量,主要用于多个进程对共享资源的访问控制问题,以保证程序正常运行。

### 套接字

套接字(Socket):是一种网络编程技术,但也可用于实现进程间通信,支持不同主机上的进程进行通信。

### 文件映射

文件映射(File Mapping):将磁盘上的文件映射到进程的地址空间中,多个进程可以同时对该文件进行读写操作,需要使用同步机制确保数据的完整性。

### 参考

- [CSDN-C++进程间通信的多种方式及实现](https://blog.csdn.net/qq_43119867/article/details/130520252)
5 changes: 5 additions & 0 deletions docs/study/program/CPP/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# C++

### 参考

- [W3Cshool-C++](https://www.w3cschool.cn/cpp/cpp-intro.html)

0 comments on commit e1a7542

Please sign in to comment.