首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
问与答
rust on Linux 怎么做单例进程比较好(进程互斥)
proxytoworld
·
2022 年 9 月 13 日
· 1092 次点击
这是一个创建于 1215 天前的主题,其中的信息可能已经有所发展或是发生改变。
Rust
进程
Linux
斥
6 条回复
•
2022-09-14 02:12:49 +08:00
1
gydi
2022 年 9 月 13 日
占端口
2
lmshl
2022 年 9 月 13 日
通用做法是锁一个文件,比如<你的 app.pid>
3
lmshl
2022 年 9 月 13 日
看这一段
https://www.baeldung.com/linux/pid-file#ensuring-a-single-instance-of-an-application
4
novolunt
2022 年 9 月 13 日
用 wasm
https://github.com/lunatic-solutions/lunatic-rs
5
fuxkcsdn
2022 年 9 月 13 日
linux 通用做法是 pid 文件锁吧
6
ecloud
2022 年 9 月 14 日
/var/run/xxx.pid
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
923 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 19:54
·
PVG 03:54
·
LAX 11:54
·
JFK 14:54
♥ Do have faith in what you're doing.
❯