首页> 外国专利> METHOD FOR ACCESSING SHARED MEMORY IN DUAL PORT MEMORY SYSTEM, AND RECORDED MEDIUM FOR PERFORMING METHOD FOR ACCESSING SHARED MEMORY IN DUAL PORT MEMORY SYSTEM

METHOD FOR ACCESSING SHARED MEMORY IN DUAL PORT MEMORY SYSTEM, AND RECORDED MEDIUM FOR PERFORMING METHOD FOR ACCESSING SHARED MEMORY IN DUAL PORT MEMORY SYSTEM

机译:双端口存储器系统中共享存储器的访问方法以及双端口存储器系统中共享存储器的访问方法的记录介质

摘要

A method for controlling access to a shared memory in a dual port memory system and a recording medium storing the same are provided to guarantee operation synchronized with respective tasks under a multi-tasking environment without additional hardware in the dual port memory system applicable to a mobile terminal equipped with two processors and a dual port memory. A counter for counting at least one task accessing a shared memory area is initialized(301). At least one task accesses the shared memory area(303). A counting value of the counter is increased whenever the task accessing the shared memory area is determined based on use of a predetermined function of an API(Application Program Interface)(305). Each task terminates access to the shared memory area(307). The counting value of the counter is decreased whenever the task terminating the access to the shared memory area occurs(309). Access protection to the shared memory area is released when the counting value gets to a predetermined value(313).
机译:提供一种用于控制对双端口存储系统中的共享存储器的访问的方法和存储该共享存储器的记录介质,以确保在多任务环境下与各个任务同步的操作,而无需在双端口存储系统中的适用于移动设备的附加硬件。终端配备两个处理器和一个双端口内存。初始化用于对访问共享存储区域的至少一个任务进行计数的计数器(301)。至少一项任务访问共享存储区(303)。每当基于API(应用程序接口)的预定功能的使用来确定访问共享存储器区域的任务时,计数器的计数值就增加(305)。每个任务终止对共享存储器区域的访问(307)。每当终止对共享存储区的访问的任务发生时,计数器的计数值就减小(309)。当计数值达到预定值时,释放对共享存储区的访问保护(313)。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号