-
客机升阻系数计算代码C++
一种适用于亚声速客机和运输机的升阻特性通用计算方法
- 2022-02-04 03:20:50下载
- 积分:1
-
five
用C++ 实现了五子棋游戏,使用的部分人工智能算法 (Using C++ implementation of the Five in a Row game, using some artificial intelligence algorithms)
- 2010-06-07 17:31:04下载
- 积分:1
-
USART1环形队列
说明: stm32的串口通信,环形队列接收,防止数据过多的时候发生丢失的情况(STM32 serial communication, ring queue receiving, to prevent data loss when too much)
- 2020-04-25 13:50:00下载
- 积分:1
-
MPU6050_DMP库
MPU6050_DMP库,MPU6050模块是块好东西大伙都知道,围绕这个几块钱的东西就可以做很多很好玩的东西,什么四翼飞行器、平衡车等。当然要完全使用这块模块不是那么容易。
- 2022-03-07 21:14:45下载
- 积分:1
-
1-批量视频去水印工具
批量去水印第三个 自行下载解压就可以使用了(The third self-downloading decompression can be used for batch de-watermarking.)
- 2019-02-21 21:30:54下载
- 积分:1
-
stm32+can
STM32之can通讯,包含初始化,can中断,发送报文,可以进行报文解析(STM32 can communication, including initialization, can interrupt, send message, you can parse the message)
- 2017-09-28 11:09:20下载
- 积分:1
-
GC 垃圾回收算法
=1,2垃圾回收算法: 托管堆:CLR要求的资源从托管堆分配,任何对象只要没有应用程序的根引用它,都会在某个时刻被垃圾回收器回收 基于代的机制,提高回收的性能,在程序的生命期中,新建的对象是新一代,而创建的比较早的对象是老一代,第0代是最近分配的对象,CLR 使用了0,1,2三代进行管理 =3 GC和调试GcAndDebug.cs =4本地资源终结(finalization)是CLR提供的一种机制,允许对象在垃圾回收器回收其内存之前执行一些得体的清理工作,任何包装了本地资源的类型都必须支持终结操作(实现一个命名为Finalize的方法)。GC判断一个对象是垃圾时,会调用对象的Finalize(实现的情况下),C#中使用~ClassName表示FinalizeIn most cases, you do not need to write classes that derive from the CriticalFinalizerObject class. The .NET Framework class library provides two classes, SafeHandle and CriticalHandle, that provide critical finalization functionality for handle resources. Furthermore, the .NET Framework provides a set of prewritten classes derived from the SafeHandle class, and this set is located in the Microsoft.Win32.SafeHandles namespace. These classes are designed to provide common functionality for supporting file and operating system handles. System.Runtime.ConstrainedExecution 下的 CriticalFinalizerObject 抽象对象,CLR特殊对待 System.Runtime.InteropServices下的派生抽象类 SafeHandle CriticalHandle 和SafeHandle只是引用计数的区别Microsoft.Win32.SafeHandles SafeFileHandle,SafeRegistryHandle ,SafeWaitHandle... SafeProcessHandle SafeLibraryHandle SafeLocalMemHandle SafeThreadHandle等MSDN没有编写,但同样是处理这个问题的 类似的实现的不同类代表不同的资源类型,这么多的类似,主要是为了类型安全SafeHandle的作用:1、以前的IntPtr形式不够健壮,如在IntPtr赋值前可能抛出ThreadAbortException异常,这样托管代码将造成本地资源的泄露2、防止利用潜在的安全漏洞,一个线程访问一个本地资源,另一个线程释放该资源,通过引用计数实现 对托管资源只有在极少数情况下才使用终结器 终结器被调用的时刻:1、第0代满:2、显式调用GC.Collect3、Windows报告内存不足4、CLR卸载AppDomain5、CLR关闭 内部实现使用终结列表保留对象,通过这个GC进行处理, freachable队列 =Dispose终结器的调用时间由GC确定,调用者无法显式调用它Dispose提供了显式清理资源的能力 GCHandle WeakReference System.Runtime.CompilerServices.ConditionalWeakTable 加入时的是对象的WeakReference,因此可能会回收,但可以确保只要key存在,value也是存在的 任何大于85000字节的对象被自动认为是大对象,大对象在大对象堆中分配 ==大量资源GCpublic static void AddMemoryPressure(Int64 bytesAllocated); public static void RemoveMemoryPressure(Int64 bytesAllocated);提示GC实际需要消耗的内存,然后GC监视内存压力,压力变大时,强制回收 System.Runtime.InteropServices HandleCollector 数量有限的本地资源 MemoryFailPoint在需要大量内存前可以先检查是否可以使用这么大的内存 GC的监视代码形式: GC.GetTotalMemory GC.CollectionCountPerMon.exe系统性能监视工具CLR Profiler工具FUSLOGVW.execlrver.exeSvcTraceViewer.exe
- 2012-12-16下载
- 积分:1
-
数量的板结构代码,清华版本,大量的算法,我..
数局结构代码,清华版,大量算法在其中,演示准确-Number of Board structure code, Tsinghua version, a large number of algorithms in which to demonstrate the accuracy
- 2022-01-26 06:51:15下载
- 积分:1
-
CMATLABconnect
VC运算速度较快,相对于matlab而言,编程较为烦琐,而matlab编程灵活,并且方很多工具箱,使用极为方便,但是matlab的M语言编写的仿真程序的仿真速度相对较慢。
C-MEX函数是基于C语言编写的C与matlab接口函数,是matlab应用程序接口的一个重要组成部分。通过它不但可以将现有的C语言编写的程序轻松地引入到matlab环境中使用,避免了重复的程序设计,而且可以使用C语言为matlab定制用于特定目的的函数(如为了保护算法设计等),
以完成在matlab中不易实现的任务。此外,更重要的一点,使用C语言编写的C-MEX函数可以有效地提高M灯matlab环境中数据处理速度和效率。
(VC computing faster, compared to matlab, the program is more cumbersome, but matlab programming flexibility, and a lot of side toolbox, use very convenient, but the M-language matlab simulation program written in a relatively slow simulation speed.
C-MEX function is based on the C language interface written in C and matlab functions matlab application interface is an important component. It can not only be through the existing programs written in C language easily introduced into the matlab environment, to avoid the duplication of programming, and can be customized using the C language for matlab functions for specific purposes (such as algorithm design, etc. in order to protect ),
Matlab in order to complete the task is not easy to achieve. In addition, more importantly, the use of C language written in C-MEX function can effectively improve the M light matlab environment, data processing speed and efficiency.
)
- 2009-12-21 10:03:58下载
- 积分:1
-
test1
很好的HT1621程序.我调试过的,请放心使用啦(HT1621 good procedures. I have been debugging, please rest assured that the use of啦)
- 2007-10-11 11:44:36下载
- 积分:1