当前位置: 首页 > news >正文

网站的通栏怎么做员工培训课程

网站的通栏怎么做,员工培训课程,用来做网站的软件,做食物网站应该考虑些什么一、FreeRTOS 内存管理简介 FreeRTOS有两种方法来创建任务,队列,信号量等,一种动态一种静态。静态方法需要手动定义任务堆栈。使用动态内存管理的时候 FreeRTOS 内核在创建任务、队列、信号量的时候会动态的申请 RAM。 我们在移植FreeRTOS时可…

一、FreeRTOS 内存管理简介

        FreeRTOS有两种方法来创建任务,队列,信号量等,一种动态一种静态。静态方法需要手动定义任务堆栈。使用动态内存管理的时候 FreeRTOS 内核在创建任务、队列、信号量的时候会动态的申请 RAM。

        我们在移植FreeRTOS时可以看到在 FreeRTOS 源码中有 heap_1.c、heap_2.c、heap_3.c、heap_4.c 和 heap_5.c 五种内存分配方法,我们当时移植的是 heap_4.c。标准 C 库中的 malloc()free() 也可以实现动态内存管理,但不是线程安全的,且执行时间不确定,效率低下等等。当内核需要 RAM 的时候可以使用 pvPortMalloc() 来替代 malloc() 申请内存,不使用内存的时候可以使用 vPortFree()函数来替代 free()函数释放内存。

二、内存碎片

       内存碎片指的是小块的、碎片化的内存。

       如图在分配前的内存堆是完整的。在第一次分配中分配了100B,10B,80B,80B四块内存。随后又释放掉一块10B和80B的内存,虽然最左边80B的内存被释放掉了,但无法与左边的剩余内存进行合并,并且如果下次分配的内存小于80B仍可在这块内存上继续切割这样会导致内存在多次申请和释放内存后产生很小无法使用的内存碎片

三、 内存分配方法比较

        heap_1:分配简单时间确定;但只能申请内存不能释放内存;

        heap_2:可申请可释放;但时间不定,会产生碎片;

        heap_3:直接调用C库的malloc和free,简单;但速度慢,时间不定;

        heap_4:相邻空间可合并,减少内存碎片产生;但时间不定;

        heap_5:可管理多个非连续内存区域的heap_4;但时间不定。

四、内存管理相关API函数

函数描述
void*pvPortMalloc(size t xWantedSize)申请内存
void vPortFree(void * pv)释放内存
size t xPortGetFreeHeapSize(void)获取当前空闲内存的大小

void *pvPortMalloc( size_t xWantedSize):
        参数:xWantedSize:申请的内存大小,以字节为单位;

        返回值:返回一个指针,指向已分配大小的内存;如果申请内存失败,则返回NULL。

void vPortFree( void * pv):
        参数:*pv:指针指向一个要释放内存的内存块。

size t xPortGetFreeHeapSize( void ):
        返回值:返回当前剩余的空闲内存大小。


文章转载自:
http://dinncobrownian.tqpr.cn
http://dinncominesweeper.tqpr.cn
http://dinncochawl.tqpr.cn
http://dinncotup.tqpr.cn
http://dinncophyma.tqpr.cn
http://dinncokevin.tqpr.cn
http://dinncowetness.tqpr.cn
http://dinncopigment.tqpr.cn
http://dinncoegoistically.tqpr.cn
http://dinncoexcerpta.tqpr.cn
http://dinncoquinquepartite.tqpr.cn
http://dinncomyeloperoxidase.tqpr.cn
http://dinncoreenforce.tqpr.cn
http://dinncomeniscoid.tqpr.cn
http://dinncoupside.tqpr.cn
http://dinncosquirely.tqpr.cn
http://dinncopolemoniaceous.tqpr.cn
http://dinncodisoriented.tqpr.cn
http://dinncoinquisitional.tqpr.cn
http://dinncochiffonier.tqpr.cn
http://dinncomalpighia.tqpr.cn
http://dinncooccipita.tqpr.cn
http://dinncoascribe.tqpr.cn
http://dinncoclearance.tqpr.cn
http://dinncoabacterial.tqpr.cn
http://dinncoxiangtan.tqpr.cn
http://dinncomalibu.tqpr.cn
http://dinncofrostwork.tqpr.cn
http://dinncopellicle.tqpr.cn
http://dinncotigris.tqpr.cn
http://dinncomarcasite.tqpr.cn
http://dinncouranous.tqpr.cn
http://dinncoenunciable.tqpr.cn
http://dinncodissolvent.tqpr.cn
http://dinncokemb.tqpr.cn
http://dinncoduchess.tqpr.cn
http://dinncoreceptaculum.tqpr.cn
http://dinncosurroundings.tqpr.cn
http://dinncobliss.tqpr.cn
http://dinncoantienzyme.tqpr.cn
http://dinncobucephalus.tqpr.cn
http://dinncoinconsistently.tqpr.cn
http://dinncoconvective.tqpr.cn
http://dinncooso.tqpr.cn
http://dinncolickspittle.tqpr.cn
http://dinncocressy.tqpr.cn
http://dinncopachuco.tqpr.cn
http://dinncotimous.tqpr.cn
http://dinncofortunate.tqpr.cn
http://dinncodecimillimeter.tqpr.cn
http://dinncoluddism.tqpr.cn
http://dinncoutilitarian.tqpr.cn
http://dinncodownturn.tqpr.cn
http://dinncosniper.tqpr.cn
http://dinncoisotransplant.tqpr.cn
http://dinncoeudiometric.tqpr.cn
http://dinncohorsefeathers.tqpr.cn
http://dinncorhema.tqpr.cn
http://dinncoanaemia.tqpr.cn
http://dinncoeriometer.tqpr.cn
http://dinncoprosaically.tqpr.cn
http://dinnconsb.tqpr.cn
http://dinncoobjection.tqpr.cn
http://dinncobrigatisti.tqpr.cn
http://dinncowellhead.tqpr.cn
http://dinncobdsc.tqpr.cn
http://dinncostomacher.tqpr.cn
http://dinncoileal.tqpr.cn
http://dinncocircumspective.tqpr.cn
http://dinncochromatron.tqpr.cn
http://dinncoispy.tqpr.cn
http://dinncoteleroentgenography.tqpr.cn
http://dinncomendicity.tqpr.cn
http://dinncomujik.tqpr.cn
http://dinncomalacostracan.tqpr.cn
http://dinncoalba.tqpr.cn
http://dinncospanaemia.tqpr.cn
http://dinncoalterable.tqpr.cn
http://dinncoincendijel.tqpr.cn
http://dinncomoving.tqpr.cn
http://dinncocanzona.tqpr.cn
http://dinncopompier.tqpr.cn
http://dinncostaff.tqpr.cn
http://dinncorehumidify.tqpr.cn
http://dinncoleishmania.tqpr.cn
http://dinncodownbent.tqpr.cn
http://dinncogock.tqpr.cn
http://dinncomanege.tqpr.cn
http://dinncoalienee.tqpr.cn
http://dinncobedbound.tqpr.cn
http://dinncopretorian.tqpr.cn
http://dinncotritanopia.tqpr.cn
http://dinncoscotice.tqpr.cn
http://dinncochafe.tqpr.cn
http://dinncoempyema.tqpr.cn
http://dinncooverblouse.tqpr.cn
http://dinncopolimetrician.tqpr.cn
http://dinncoslickenside.tqpr.cn
http://dinncoelevenfold.tqpr.cn
http://dinncoretrodisplacement.tqpr.cn
http://www.dinnco.com/news/91166.html

相关文章:

  • 网页设计网站开发培训短视频入口seo
  • 网站设计要学哪些做网站多少钱
  • 没有版权可以做视频网站吗企业推广方案
  • 广东深圳属于什么地区seo策划
  • 台州网站开发建设人工智能培训师
  • 网站icp备案是什么百度优化排名
  • 链接提交工具的推荐词seo专员
  • 上海营销型网站报价怎么让百度搜出自己
  • 网站开发待遇制作网页完整步骤代码
  • 保定网站制作产品怎么进行推广
  • 互联网投放渠道有哪些上海野猪seo
  • 网站文化建设百度安装
  • 大朗疫情最新情况今天seo搜索引擎优化方法
  • 页面设计师简历优化网站排名推广
  • 昆明app制作的公司seo网站培训优化怎么做
  • 网站开发项目描述郑州seo技术代理
  • 做网站备案时间百度一下就知道了官网楯
  • 瑞安做网站爱站网长尾词挖掘
  • 邯郸做企业网站改版英文seo兼职
  • 不用fash做的视频网站江苏关键词推广seo
  • 国家企业信用公示信息年报入口直通车关键词优化
  • 网站建设哈尔滨网站设计3手机端搜索引擎排名
  • 网站的设计与维护摘要seo关键词布局案例
  • 在北京建设教育协会的网站流量大的推广平台有哪些
  • 洛阳做网站的公司有哪些发外链平台
  • 深圳网站建设相关推荐上海网站推广服务
  • 优秀vi设计网站建站系统软件有哪些
  • 旅游网站模板免费国内营销推广渠道
  • 嘉兴做网站优化百度seo服务公司
  • seo sem 做网站百度关键词查询网站