摘要: 1.线程的创建 编写程序模拟 Allen 和 Luffy 爬楼,楼层是从 1-10 层。 Allen 每上一层休息 10ms , Luffy 每上 一层休息 5ms . (需要注意的是 Allen 和 Luffy 是一起爬楼的,而非某个人先爬楼,爬完后接着另一 个人爬楼。) 因为线程用到 pthre 阅读全文
posted @ 2021-06-14 20:17 taoshuai 阅读(39) 评论(0) 推荐(0) 编辑