发明名称 Method and system for regulating communication traffic using a limiter thread
摘要 A methodology for using multiple execution threads to regulate message traffic is presented. An application thread spawns a limiter thread, and each have access in shared memory to a message count that reflects a number of messages that are transmitted by the application thread within a regulated time period. The limiter thread cycles by entering a sleep state for the regulated time period, resetting the message count upon awakening, and then reentering a sleep state. The application thread executes a loop that compares the message count against a maximum number of messages for the regulated time period; if the comparison is favorable, then another message is transmitted and the message count is adjusted. If the comparison is not favorable, then the application thread enters a sleep state; after awakening, it repeats the comparison, and depending on the result, it transmits a message or reenters a sleep state.
申请公布号 US7299470(B2) 申请公布日期 2007.11.20
申请号 US20010951951 申请日期 2001.09.13
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 CURTIS BRYCE ALLEN
分类号 G06F9/00;G06F9/46 主分类号 G06F9/00
代理机构 代理人
主权项
地址