检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:熊启龙[1]
机构地区:[1]水利部淮河水利委员会水文局,安徽蚌埠232001
出 处:《水利信息化》2012年第5期49-52,共4页Water Resources Informatization
摘 要:如何解决数据碰撞和多线程条件下的数据库操作是遥测中心站GPRS数据接收软件开发的关键,采用基于Delphi平台下的Indy控件编写软件,为每个TCP连接分配1个单独线程处理通信任务,是解决数据碰撞的办法之一。多线程条件下数据库操作需要考虑线程安全,采用"连接池"设计模式对多线程操作数据库的连接统一分配和管理,可以减少对数据库资源的占用。通过在山东省水情自动测报系统的应用,说明此设计方式对实现GPRS数据接收遇到的关键问题和功能实现能给出基本模型,很好地改善GPRS数据接收软件的数据库操作性能,减少系统资源的使用。How to solve database manipulation in the condition of data collision and multithreading is the key of GPRS data receiving software application in telemetry center. The soRware is written with the control of Indy based on Delphi platform. Every TCP connection is distributed an independent thread processing communication task. It is one of methods to solve the data collision. In the condition of multithreading, database manipulation needs to consider thread- safe. The connection of multithreading operation database is assigned and managed by design patterns of "connecting pool" . It can reduce database resource occupancy. Through application of water regime automatic telemetry system in Shandong, it illustrates that the designing style can give the basic model for function implementation and the key problems receiving GPRS data. It well improves database performance of GPRS data receiving soft'ware and reduces the use of system resources.
关 键 词:GPRS网络 TCP UDP数据接收 数据碰撞 INDY控件 多线程 连接池
分 类 号:TV929.5[水利工程—水利水电工程]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.133.141.1