2024年12月11日

摘要: ![](https://img2024.cnblogs.com/blog/1151941/202412/1151941-20241211103541938-1006870759.png) ![](https://img2024.cnblogs.com/blog/1151941/202412/1151941-20241211103612014-599249363.png) 阅读全文
posted @ 2024-12-11 10:36 ac23 阅读(8) 评论(0) 推荐(0) 编辑

2024年12月10日

摘要: To disable the automatic popup prompt for upgrading the Linux kernel on Ubuntu 22.04, you need to adjust the settings related to the update manager an 阅读全文
posted @ 2024-12-10 17:13 ac23 阅读(14) 评论(0) 推荐(0) 编辑

2024年9月6日

摘要: 背景 示例:实时CPU使用率 阅读全文
posted @ 2024-09-06 16:02 ac23 阅读(27) 评论(0) 推荐(0) 编辑

2024年7月24日

摘要: 个人理解的定义 高效、低延迟、可重用的消息传递系统(或消息传递层,有点类型网络协议,但不是消息队列) 基于python3和ZMQ做进程间通信示例: # 本脚本用于从zmq队列中接收订阅的数据 import time import json import zmq def subscriber(code 阅读全文
posted @ 2024-07-24 17:42 ac23 阅读(10) 评论(0) 推荐(0) 编辑

2024年7月18日

摘要: 步骤如下 安装 https://grafana.com/docs/grafana/latest/setup-grafana/installation/debian/ 启动 使用systemd的方式启动、查看运行状态、重启,方便快捷 https://grafana.com/docs/grafana/l 阅读全文
posted @ 2024-07-18 10:56 ac23 阅读(28) 评论(0) 推荐(0) 编辑

2024年7月14日

摘要: 该运行时API的作用 作为在访问共享内存时作为线程块内的同步机制出现,保证同一线程块内所有线程到程序运行到这个运行时API调用时都能运行完毕(注意,该API不能同步不同线程块内的线程),例如下列Cuda静态共享内存使用代码示例程序中的第23行所示: /************************ 阅读全文
posted @ 2024-07-14 15:26 ac23 阅读(26) 评论(0) 推荐(0) 编辑

2024年7月13日

摘要: 重点 计算线程唯一标识,并确保没有线程越界的技巧: 以下列英伟达官方的Cuda程序示例为例子 /* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source an 阅读全文
posted @ 2024-07-13 12:14 ac23 阅读(22) 评论(0) 推荐(0) 编辑

2024年6月18日

摘要: 1.定义 在多线程编程中,当两个或多个线程并发访问同一个内存位置时,如果没有适当的同步机制(如锁或原子操作),并且至少有一个访问是写操作,就会发生数据竞争。这可能会导致不可预测的行为、崩溃或错误的结果。 阅读全文
posted @ 2024-06-18 09:25 ac23 阅读(24) 评论(0) 推荐(0) 编辑

2024年6月9日

摘要: 原来 bool Myclass::connect() { std::function<void()>f = std::bind(&Myclass::loopCheckStatus, this); new std::thread(f); return true; } void Myclass::loo 阅读全文
posted @ 2024-06-09 22:16 ac23 阅读(23) 评论(0) 推荐(0) 编辑

2024年5月10日

摘要: Ray core https://mp.weixin.qq.com/s/8yJ9CO61ZraAvfw8X0Rz-g 阅读全文
posted @ 2024-05-10 10:04 ac23 阅读(5) 评论(0) 推荐(0) 编辑
 
点击右上角即可分享
微信分享提示