您好,欢迎来到爱站旅游。
搜索
您的当前位置:首页One-time initialization

One-time initialization

来源:爱站旅游
专利内容由知识产权出版社提供

专利名称:One-time initialization发明人:Arun Kishan,Neill M. Clift申请号:US13106850申请日:20110512公开号:US09600325B2公开日:20170321

专利附图:

摘要:Aspects of the present invention are directed at providing safe and efficientways for a program to perform a one-time initialization of a data item in a multi-threadedenvironment. In accordance with one embodiment, a method is provided that allows aprogram to perform a synchronized initialization of a data item that may be accessed by

multiple threads. More specifically, the method includes receiving a request to initializethe data item from a current thread. In response to receiving the request, the methoddetermines whether the current thread is the first thread to attempt to initialize the dataitem. If the current thread is the first thread to attempt to initialize the data item, themethod enforces mutual exclusion and blocks other attempts to initialize the data itemmade by concurrent threads. Then, the current thread is allowed to execute programcode provided by the program to initialize the data item.

申请人:Arun Kishan,Neill M. Clift

地址:Bellevue WA US,Kirkland WA US

国籍:US,US

代理机构:Collins & Collins Intellectual, LLC

代理人:L. Alan Collins

更多信息请下载全文后查看

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- azee.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务