[英]Sharing Threads between processes?
您可以使用管道在C中的兩個進程之間共享線程嗎? 我正在編寫自己的shell,想知道這個實現是否更加優化,如果可能的話?
每個線程特定於進程並共享調用線程的內存。
如果您希望進行有效的進程間通信,則可以使用共享內存。
見http://man7.org/linux/man-pages/man7/shm_overview.7.html
[英]Sharing memory between processes on linux
[英]Sharing memory between two processes
[英]Distinction between processes and threads in Linux
[英]File locking between threads and processes
[英]Sharing generic data between threads
[英]Sharing structures between threads in C
[英]Memory sharing between threads in C
[英]Sharing data between threads in C
[英]sharing of opened file descriptor between different processes
[英]Sharing memory between processes through the use of mmap()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.