登录
首页 » c++ » 两种方式实现的内存池

两种方式实现的内存池

于 2023-07-18 发布 文件大小:11.35 kB
0 168
下载积分: 2 下载次数: 2

代码说明:

这是一份C++的内存池实现的代码,采用了链表和大顶堆两种实现方式。并且这份代码是经过高并发的大量数据验证无误。一些跟主要逻辑无关的基本方法的实现,如日志、锁互斥等实现没有包含进来,你可以自己修改他

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • sucess_in_fdct
    本程序是一幅512*512的lena.raw图像进行快速DCT和其逆变换,整个程序均调试通过,是在C语言环境下编写的,在整个关于快速DCT的源码中,本代码可以说是集大成者,很值得一看。(This procedure is mainly of a float or double type of data, rounding, the float data can be positive or negative, can be, take the whole principle of rounding.)
    2010-05-26 11:20:30下载
    积分:1
  • 回溯法搜索
    最近巴达兽在研究一个数码问题:在一个 1*9 的棋盘上,摆着 8 个棋子,每个棋子标有 1 至 8 的某个数字,不同的棋子标的数字不同,棋盘还有一个空格,假设空格的位置为 x(位 置从 1 到 9),那么如果棋子的坐标 y, |y-x|
    2022-01-31 11:17:34下载
    积分:1
  • client-server
    多协议文件传输c/s网络应用设计与实现,程序用 TCP/UDP 两个协议模拟多协议服务器。首先服务器端要将两种协议的套接字创建好,并且监听 TCP 端口的连接。必要时使用select函数来进行多连接处理和非阻塞处理。而客户端直接可以按照发送的地址和端口号来进行通讯。 首先要运行服务器端,服务器会监听 TCP 端口。然后运行客户端,根据事先设定好的 IP和端口,就可以进行连接传输数据了。 程序实现的关键步骤: 以TCP协议为例 服务器端: 1.创建套接字;2.绑定端口;3.进入无穷的循环;4.接收请求;5.处理请求;6.应答。 客户端: 1.找到服务器的IP地址和协议的端口号;2.创建套接字;3.确定连接需要任意的,没有使用的端口号允许TCP去选择一个;4.将套接字和服务器连接;5.使用应用层协议和服务器交互;6.关闭连接。 (Multi-protocol file transfer c/s network application design and implementation of programs simulate multi-protocol server with TCP/UDP both protocols. First socket server to create a good two protocols, TCP port and listens for connections. If necessary, use the function to handle multiple connections and non-blocking treatment. And the client can follow directly address and port number to communicate. First run on the server side, the server listens on TCP port. Then run the client, according to pre-configured IP and port, you can connect the data transmission. The key step program implementation: In TCP protocol as an example Service-Terminal: 1. Create a socket 2 bound port 3 enter an infinite loop 4. receiving a request 5. processing requests 6 response. Clients: 1. Locate the server s IP address and protocol port number 2 creates a socket 3 connections need to determine arbitrary, unused port allows TCP to choose a 4 and the socket server connections 5 using appli)
    2016-07-11 10:19:07下载
    积分:1
  • curve25519-20050915.tar
    Elliptic Curve Diffie-Hellman Key Agreement Scheme
    2010-02-10 04:27:27下载
    积分:1
  • 图书馆管理系统
    Asp.net开发的图书馆管理系统,功能齐全,可以直接供使用,编码完整,不管是新手还是老手都比较适合下载。(The library management system developed by Asp.net can be directly used and coded. It is suitable for both novice and experienced users.)
    2021-03-30 16:09:09下载
    积分:1
  • CH372TEST
    说明:  这是USB接口芯片CH372上位机和下位机的测试程序(This is a USB interface USB Chip CH372 PC and the next crew of the test procedure)
    2006-05-08 17:41:48下载
    积分:1
  • Video_CSharp
    CSharp类,通过API播放摄像头视频(CSharp class, play a video camera through the API)
    2014-12-29 00:07:54下载
    积分:1
  • MFC-drawing
    MFC做的画图软件 只能画直线 还有待改进 适合初学者 看看(MFC do draw a straight line drawing software can be improved for beginners look)
    2013-12-19 15:51:43下载
    积分:1
  • IEEE1588 PTP , 对等延时机制,请求延时机制 V1 ,V2
    IEEE 1588-2008编程源码,IEEE1588也称为PTP协议,本代码实现两种机制: 请求延时机制,对等延时机制,可参考实现透传时钟,支持两个版本 V1 ,V2。
    2022-03-30 22:07:55下载
    积分:1
  • GPS_Net_adjustment
    用于读取GPS标准文件格式RINEX中的导航文件N文件和观测文件o文件,运用双差模型进行单基线解算(Standard file format used to read GPS navigation files in RINEX files and observation files N o files, the use of double-difference model for single baseline solution)
    2013-11-21 09:59:25下载
    积分:1
  • 696518资源总数
  • 106268会员总数
  • 10今日下载