Invention Grant
- Patent Title: Synchronizing shared resources in a collection
- Patent Title (中): 同步一个集合中的共享资源
-
Application No.: US11233633Application Date: 2005-09-22
-
Publication No.: US08370317B2Publication Date: 2013-02-05
- Inventor: Boaz Chen , Shahar Prish
- Applicant: Boaz Chen , Shahar Prish
- Applicant Address: US WA Redmond
- Assignee: Microsoft Corporation
- Current Assignee: Microsoft Corporation
- Current Assignee Address: US WA Redmond
- Main IPC: G06F7/00
- IPC: G06F7/00 ; G06F17/00 ; G06F17/30

Abstract:
Multi-threaded access to a collection is synchronized without locking the collection for long periods of time. In one implementation, a collection is locked briefly to allow safe creation of a resource entry (or a placeholder entry) in the collection and then unlocked prior to the start of the resource build operation. As such, the collection is unlocked during the potentially long period of time required to build the resource (e.g., a data object) into the collection. Furthermore, during the build operation, access attempts to the same resource in the collection by other threads are forced to wait until the resource build is completed. Nevertheless, the collection itself is not locked during the resource build operation, so that other threads can access other resources within the collection without waiting.
Public/Granted literature
- US20070067257A1 Synchronizing shared resources in a collection Public/Granted day:2007-03-22
Information query