CN110447013A - 定时器实现方法和装置 - Google Patents

定时器实现方法和装置 Download PDF

Info

Publication number
CN110447013A
CN110447013A CN201880000139.2A CN201880000139A CN110447013A CN 110447013 A CN110447013 A CN 110447013A CN 201880000139 A CN201880000139 A CN 201880000139A CN 110447013 A CN110447013 A CN 110447013A
Authority
CN
China
Prior art keywords
timer
node
linked list
current
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201880000139.2A
Other languages
English (en)
Inventor
朱明�
王明亮
银国超
胡丽华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Publication of CN110447013A publication Critical patent/CN110447013A/zh
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4887Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues involving deadlines, e.g. rate based, periodic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/14Time supervision arrangements, e.g. real time clock
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4825Interrupt from clock, e.g. time of day
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Power Sources (AREA)

Abstract

一种定时器实现方法和装置,其中,该方法包括:根据定时器链表中最先到期的定时器节点的到期时间确定硬件定时器的计数周期(S101);当硬件定时器的计数周期到期时,遍历定时器链表中的定时器节点,并更新硬件定时器的计数周期(S102)。可以有效的降低系统功耗和处理器资源占用率。

Description

PCT国内申请,说明书已公开。

Claims (18)

  1. PCT国内申请,权利要求书已公开。
CN201880000139.2A 2018-01-16 2018-01-16 定时器实现方法和装置 Pending CN110447013A (zh)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/072867 WO2019140551A1 (zh) 2018-01-16 2018-01-16 定时器实现方法和装置

Publications (1)

Publication Number Publication Date
CN110447013A true CN110447013A (zh) 2019-11-12

Family

ID=67300943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880000139.2A Pending CN110447013A (zh) 2018-01-16 2018-01-16 定时器实现方法和装置

Country Status (4)

Country Link
US (1) US20190317809A1 (zh)
EP (1) EP3550431B1 (zh)
CN (1) CN110447013A (zh)
WO (1) WO2019140551A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817723A (zh) * 2021-02-04 2021-05-18 歌尔股份有限公司 定时器调用方法、装置、设备及计算机可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504979B (zh) * 2021-07-16 2024-04-16 珠海格力电器股份有限公司 定时器实现方法、装置、实时操作系统及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1441570A (zh) * 2002-02-28 2003-09-10 深圳市中兴通讯股份有限公司上海第二研究所 嵌入式实时操作系统中定时器的计时方法
CN1877535A (zh) * 2006-07-07 2006-12-13 浙江大学 嵌入式实时操作系统高效遍历的定时方法
CN101359294A (zh) * 2008-10-09 2009-02-04 北京佳讯飞鸿电气股份有限公司 一种嵌入式系统定时器的管理方法
CN101840353A (zh) * 2010-05-14 2010-09-22 陈冬岩 一种实时嵌入式操作系统的动态计时方法
CN101859260A (zh) * 2010-05-14 2010-10-13 中国科学院计算技术研究所 用于操作系统中的定时器管理装置和管理方法
US20170017260A1 (en) * 2015-07-13 2017-01-19 Freescale Semiconductor, Inc. Timer rings having different time unit granularities

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6732287B1 (en) * 2000-06-22 2004-05-04 Rockwell Automation Technologies, Inc. Method for processing dynamically allocated timers in a real time operating system
US6807547B2 (en) * 2000-07-10 2004-10-19 Sun Microsystems, Inc. Method and apparatus for implementing timers for enterprise javabean components
JP4377704B2 (ja) * 2003-01-24 2009-12-02 株式会社東芝 フローデータ生成方法およびフローデータ生成装置
US7475002B1 (en) * 2004-02-18 2009-01-06 Vmware, Inc. Method and apparatus for emulating multiple virtual timers in a virtual computer system when the virtual timers fall behind the real time of a physical computer system
US7461173B2 (en) * 2004-06-30 2008-12-02 Intel Corporation Distributing timers across processors
US20060218176A1 (en) * 2005-03-24 2006-09-28 International Business Machines Corporation System, method, and service for organizing data for fast retrieval
US7506218B2 (en) * 2006-08-18 2009-03-17 International Business Machines Corporation Timeout request scheduling using grouping and nonsynchronized processing to enhance performance
JP5242859B2 (ja) * 2010-07-08 2013-07-24 エヌイーシー ヨーロッパ リミテッド 通信ネットワークで電源制御をサポートする方法
CN102637126B (zh) * 2011-02-15 2015-05-13 无锡物联网产业研究院 嵌入式系统的定时方法、装置和系统
US9836418B2 (en) * 2013-03-13 2017-12-05 Dornerworks, Ltd. System and method for deterministic time partitioning of asynchronous tasks in a computing environment
CN104035786B (zh) * 2014-07-01 2017-11-24 上海斐讯数据通信技术有限公司 一种软件定时器的优化方法及系统
WO2017024005A1 (en) * 2015-08-03 2017-02-09 Convida Wireless, Llc Mobile core network service exposure for the user equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1441570A (zh) * 2002-02-28 2003-09-10 深圳市中兴通讯股份有限公司上海第二研究所 嵌入式实时操作系统中定时器的计时方法
CN1877535A (zh) * 2006-07-07 2006-12-13 浙江大学 嵌入式实时操作系统高效遍历的定时方法
CN101359294A (zh) * 2008-10-09 2009-02-04 北京佳讯飞鸿电气股份有限公司 一种嵌入式系统定时器的管理方法
CN101840353A (zh) * 2010-05-14 2010-09-22 陈冬岩 一种实时嵌入式操作系统的动态计时方法
CN101859260A (zh) * 2010-05-14 2010-10-13 中国科学院计算技术研究所 用于操作系统中的定时器管理装置和管理方法
US20170017260A1 (en) * 2015-07-13 2017-01-19 Freescale Semiconductor, Inc. Timer rings having different time unit granularities

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817723A (zh) * 2021-02-04 2021-05-18 歌尔股份有限公司 定时器调用方法、装置、设备及计算机可读存储介质

Also Published As

Publication number Publication date
US20190317809A1 (en) 2019-10-17
EP3550431A1 (en) 2019-10-09
EP3550431B1 (en) 2021-12-08
EP3550431A4 (en) 2020-03-11
WO2019140551A1 (zh) 2019-07-25

Similar Documents

Publication Publication Date Title
US9990229B2 (en) Scheduling method and apparatus for applying laxity correction based on task completion proportion and preset time
EP2129045B1 (en) Master slave communication system and master slave communication method
CN110720096B (zh) 一种多传感器状态估计方法、装置及终端设备
EP3110051B1 (en) System and method for adaptive clock/time synchronization between devices in a network
CN110447013A (zh) 定时器实现方法和装置
CN110262883B (zh) 基于定时器的任务处理方法、装置及电子设备
CN112787958B (zh) 延迟消息处理方法及设备
EP2315462A1 (en) Method and terminal for controlling estimation of terminal movement state
US9232010B1 (en) Method and apparatus for context aware intelligent message handling
CN108306967B (zh) 一种数据处理方法及终端
CN116256532A (zh) 速度测量方法、装置、设备及存储介质
CN113424154A (zh) 边缘侧模型处理的方法、边缘计算设备和计算机可读介质
JP3751466B2 (ja) プログラム応答時間予測装置
CN108021439B (zh) 一种任务轮询方法、任务排布方法和相关装置
EP3244313A1 (en) Systems and methods of subject state change notification
US10638290B2 (en) Communication terminal and communication system
US20060208829A1 (en) System and method for timer windows
CN110618879A (zh) 消息处理方法、装置、电子设备和计算机可读介质
CN105162946A (zh) 一种基于移动终端的闹钟处理方法及移动终端
JP2002073354A (ja) タスク制御装置とタスク制御方法
US9887928B2 (en) System and method for identifying performance characteristics in asynchronous networks
CN113742426A (zh) 一种数据同步方法、装置、设备、服务器及存储介质
CN112639746A (zh) 数据库装置、程序以及数据处理方法
CN107273191B (zh) 一种使用逻辑克隆表达式的定时任务调度的方法及装置
CN116844321B (zh) 用于工控系统中do模块的多通道脉宽输出实现方法

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191112