随笔分类 -  算法

记录工作中看到的算法,
摘要:#include <QCoreApplication>#include <QThread>#include <QDebug>#include <QMutex>#include <QWaitCondition>QMutex mutex;QWaitCondition readCondition;QWai 阅读全文
posted @ 2023-05-24 08:44 愿得入睡 阅读(15) 评论(0) 推荐(0) 编辑
摘要:static inline bool is_ident_char(char s) { return ((s >= 'a' && s <= 'z') || (s >= 'A' && s <= 'Z') || (s >= '0' && s <= '9') || s == '_' ); } static 阅读全文
posted @ 2023-05-21 07:37 愿得入睡 阅读(33) 评论(0) 推荐(0) 编辑
摘要:互斥 peterson -解法。 2个线程,C表示 阅读全文
posted @ 2023-05-19 09:29 愿得入睡 阅读(49) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示