c# locking
i am perplexing hinder information races multihreaded server. problem following: there list<rserver>, form rserver category several fields. now, server several threads controlling during same cgange both list (adding some-more items) sole rserver instances (changing fields).
so plan readonly vigilant rserverlock = new object( ) any rserver instances additionally readonly vigilant rserverlistlock = new object( ) hang formula modifies presumably (the list rserver instance) lock. safe? happens thread tries close rserverlock while another locking it?
Comments
Post a Comment