when to use lock

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andy Wynn

    #1

    when to use lock

    I have written a windows service that will be used as a licensing server for
    a desktop application. I was planning to use a generic list to hold the
    license objects. For the majority of the time the service will see a small
    about of traffic, since the number of licenses that will need to be tracked
    in less than 12. I was wondering if using Lock is safe and appropriate to
    use on generic lists, or if I'm looking in the wrong place all together with
    using Lock and maybe something more specific.

    Thanks.

    Andy


  • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

    #2
    Re: when to use lock

    Andy Wynn wrote:
    I have written a windows service that will be used as a licensing server for
    a desktop application. I was planning to use a generic list to hold the
    license objects. For the majority of the time the service will see a small
    about of traffic, since the number of licenses that will need to be tracked
    in less than 12. I was wondering if using Lock is safe and appropriate to
    use on generic lists, or if I'm looking in the wrong place all together with
    using Lock and maybe something more specific.
    There can be contexts where you need to synchronize access to a generic
    list. But why do you think you need to do it ?

    Arne

    Comment

    Working...