发明名称 METHOD FOR PERIODICALLY EXECUTING TASK BY USE OF FLAG VARIABLE AND SEMAPHORE
摘要 PURPOSE: A method for periodically executing a task by use of flag variables and a semaphore, is provided to reduce delay time through independently operating a periodically timer-interrupting work, and to perform a full load control function of a corresponding system, while repeating a work every specific period according to a load of the system, by operating a corresponding flag variable to control a semaphore count. CONSTITUTION: A method for periodically executing a task by use of flag variables and a semaphore, comprises the steps of: setting up an interrupt period of a timer; confirming whether an end flag is set up, when the timer interrupt is generated; increasing a semaphore count by '1' through calling a semaphore signal function; performing a work responding to a task which waits at the semaphore; decreasing the semaphore count by '1'; when the work is done, setting up the end flag.
申请公布号 KR20000040598(A) 申请公布日期 2000.07.05
申请号 KR19980056267 申请日期 1998.12.18
申请人 LG INFORMATION & COMMUNICATIONS LTD. 发明人 KIM, BONG HWAN
分类号 G06F9/00;(IPC1-7):G06F9/00 主分类号 G06F9/00
代理机构 代理人
主权项
地址