摘要: 多线程之间的通信和内存共享常见方式 use std::sync::mpsc; use std::thread; use std::sync::{Arc,Mutex}; struct User { name: String } fn main() { // Arc 通过共享内存 在线程间通信 数据不可 阅读全文
posted @ 2023-09-09 19:54 天使不设防 阅读(27) 评论(0) 推荐(0) 编辑