Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
调用是否会semget()导致在文件系统的某处创建唯一文件?我正在尝试使用信号量作为共享内存段的密钥,并认为 ftok() 可能是一个可行的选择。
semget()
不会。System V IPC 对象(信号量、消息队列和共享内存)存在于与文件系统不同的命名空间中。