-
2
说明: 编写带缓存的文件操作类
从执行体程序库中的CLLogger类可知,通过缓存要写入文件中的数据,能够提高读写磁盘的性能
请编写一个文件操作的封装类,其要求如下:
需要提供open/read/write/lseek/close等函数的封装函数
该类要提供数据缓存服务。
调用该类的写操作接口时,数据要首先写到缓存,然后再根据策略写到文件中。
调用该类的读操作接口时,该类能根据策略缓存读出的数据
读写缓存要保持一致性
(From the implementation of the CLLogger class library, we can know, through the cache to write data in the file, you can improve the performance of the read and write disk
Please write a package for the operation of the class, and its requirements are as follows:
The encapsulation function of open/read/write/lseek/close and other functions is required.
The class to provide data cache services.
When the write operation interface of the class is called, the data must first be written to the cache, and then the policy is written to the file.
When a read operation interface of the class is called, the class can read the data according to the policy cache.
Read/write cache to maintain consistency)
- 2016-11-05 21:27:34下载
- 积分:1
-
uCOS-II原理及应用》任哲
说明: uCOS-II原理及应用 任哲编写 讲述了uCOS的原理与应用(Principle and application of uCOS-II)
- 2020-06-25 18:53:46下载
- 积分:1
-
AD_lcd
基于TI公司的msp430g2553单片机的lcd显示程序,好用(Based on TI company s msp430g2553 MCU LCD display program, absolutely easy to use)
- 2013-09-12 12:23:53下载
- 积分:1
-
AD0809
ADC0809做的数字电压表,0-5V,4个LED直接接单片机做显示,动态扫描写的驱动(ADC0809 do the figures in Table 0-6 voltage- 5V, 4 LED SCM done directly, dynamic scan was driven)
- 2020-06-26 07:40:02下载
- 积分:1
-
suoxianghaun
飞思卡尔单片机锁相环程序,详细说明了锁相环的配置步骤以及计算方法(Freescale MCU PLL procedures, a detailed description of the PLL configuration steps and calculation methods)
- 2020-11-09 21:29:46下载
- 积分:1
-
18B20
基于ds18b20 及51单片机 程序数字温度计设计程序 (Ds18b20 and 51 of the SCM process-based digital thermometer design process)
- 2012-06-12 21:12:47下载
- 积分:1
-
IT
TI 经典的范例 对于学习msp430系列芯片的人肯定有用的 呵呵 可以看看(The classic example of TI msp430 series chips for learning useful Oh man certainly can look at)
- 2013-07-27 20:14:24下载
- 积分:1
-
基于STM32F103C8T6的无线传输 DS18B20所测量的温度的代码
说明: 基于STM32F103C8T6的无线传输 DS18B20所测量的温度的代码(The code of temperature measured by wireless transmission DS18B20 based on stm32f103c8t6)
- 2020-05-20 15:11:20下载
- 积分:1
-
12864底层
说明: 12864在51上的驱动,可在驱动的基础上改进添加需要的功能。(12864 is driven on 51, which can improve the required functions on the basis of driver.)
- 2020-06-19 14:20:01下载
- 积分:1
-
AN1017_dsPIC33EP256MC506_MCHV2_MOTOR80
美芯 dsPIC33官方 永磁同步电机控制程序,实现PMSM电机正弦驱动,含理论说明和调试笔记。(MicroChip dsPIC33 official permanent magnet synchronous motor control procedures, including theoretical notes and debugging notes.)
- 2021-03-23 15:59:15下载
- 积分:1