471,318 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,318 software developers and data experts.

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
Apr 8 '08 #1
1 1248
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
Apr 8 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Bruce Pullen | last post: by
4 posts views Thread by Christoph Zeltner | last post: by
7 posts views Thread by Sunny | last post: by
190 posts views Thread by blangela | last post: by
94 posts views Thread by Samuel R. Neff | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.