发明名称 |
记忆体动态分配方法及系统;System and Method for Dynamically Allocating Memory |
摘要 |
本发明提供一种储存器动态分配方法及系统,该系统包括:记录模组,用于记录一段时间进程使用记忆体最大值X1;比较模组,用于比较预设进程申请记忆体值X2和X1的大小,将较大者存入第一变数,较小者存入第二变数;分配模组,用于分配第一预设记忆体值给预设进程;判断模组,用于判断当前记忆体是否满足预设进程运行;所述分配模组还用于如果当前分配的记忆体不满足预设进程运行,分配第二预设记忆体值给预设进程,并触发判断模组;触发模组,用于记忆体满足预设进程运行时,唤醒预设进程。; a comparing module that compares X1 with a memory X2 applied by a predefined process, and stores a greater memory between X1 and the X2 in a first variable, and stores a smaller memory in a second variable; an allocating module that allocates a first predefined memory to the predefined process; a determination module that determines whether a current memory allocated to the predefined process is enough; the allocating module further allocates a second predefined memory to the predefined process if the current memory allocated to the predefined process is not enough, and triggers the determination module; a triggering module that wakes up the predefined process if the current memory allocated to the predefined process is enough. |
申请公布号 |
TW201508482 |
申请公布日期 |
2015.03.01 |
申请号 |
TW102115365 |
申请日期 |
2013.04.30 |
申请人 |
鸿海精密工业股份有限公司 HON HAI PRECISION INDUSTRY CO., LTD. |
发明人 |
房金妮 FANG, JIN-NI;罗探科 LUO, TAN-KE |
分类号 |
G06F12/02(2006.01);G06F12/08(2006.01) |
主分类号 |
G06F12/02(2006.01) |
代理机构 |
|
代理人 |
|
主权项 |
|
地址 |
新北市土城区自由街2号 TW |