首页> 外国专利> EMBEDDED SYSTEMS AND METHODS FOR THREADS AND BUFFER MANAGEMENT THEREOF

EMBEDDED SYSTEMS AND METHODS FOR THREADS AND BUFFER MANAGEMENT THEREOF

机译:用于线程和缓冲区管理的嵌入式系统和方法

摘要

Embedded systems are provided, which includes a processing unit and a memory. The processing unit simultaneously executes first thread having a flag for performing a data acquisition operation and second thread for performing a data process and output operation for the acquired data in the data acquisition operation. The flag is used for indicating whether a state of the first thread is in an execution state or a sleep state. The memory which is coupled to the processing unit provides a shared buffer for the first and second threads. Before executing the second thread, the flag is checked to determine whether to execute the second thread, wherein the second thread is executed when the flag indicates the sleep state while execution of the second thread is suspended when the flag indicates the execution state.
机译:提供了嵌入式系统,其包括处理单元和存储器。处理单元同时执行具有用于执行数据获取操作的标志的第一线程和用于在数据获取操作中对所获取的数据执行数据处理和输出操作的第二线程。该标志用于指示第一线程的状态是处于执行状态还是睡眠状态。耦合到处理单元的存储器为第一和第二线程提供共享缓冲器。在执行第二线程之前,检查标志以确定是否执行第二线程,其中,当标志指示睡眠状态时执行第二线程,而当标志指示执行状态时暂停第二线程的执行。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号