从一次 double free 深入理解 shared_ptr 的原理与最佳实践

从实际开发中遇到的 double free 问题出发,系统剖析智能指针 shared_ptr 的工作原理与 shared_ptr 的六大使用陷阱,最后提供 shared_ptr 非线程安全版本和基于原子操作的线程安全实现。

C++
#C++#shared_ptr#内存泄露

AI Infra 与 Infra

近些年来,关于 AI Infra 和传统 Infra 之间的差异引发了广泛讨论。一些工程师认为,AI Infra 与他们熟悉的传统 Infra 相距甚远,尤其是面对 GPU、KVCache、3D 并行等新概念时,难免感到困惑和不安。究竟 AI Infra 真的与传统 Infra 有着天壤之别,还是说它们之间其实是某种延续与演变?

AI-Infra
#AI Infra#Infra

🎓 OI Wiki

OI Wiki 致力于成为一个免费开放且持续更新的编程竞赛知识整合站点,聚焦于竞赛中的基础知识、常见题型、解题思路以及常用工具等内容,帮助大家更快速深入地学习编程竞赛中涉及到的知识。

OI-Wiki
#C++#OI#ACM

堆(优先队列)

priority_queue 又称为 Heap

数据结构与算法
#LeetCode#数据结构

[EuroSys'24] Volley

In this paper, we designed Volley, a network storage protocol with write-read ordering guarantees. Atop Volley, we build V-Cache and V-TriCache for storage and computing scenarios respectively. Extensive evaluations show that compared with the traditional NVMe-oF protocol, Volley increases the throughput by 1.57×. V-Cache improves the throughput by up to 6.84×, and V-TriCache reduces the workload total running time by to up to 16.7% compared with the state-of-the-art systems.

科研
#EuroSys
12323

本站总访问量

本站共发表 114 篇文章 · 总计 399.7k 字
载入天数...载入时分秒...