I'd like to have three arrays all share the same syncroot, so that in my multi-threaded application, if any thread gets a lock on any one of the 3 arrays, no other thread can modify any of the 3 arrays until the lock is released. Is this possible? is it a really bad idea?
I have tried setting the syncroot of the arrays (which failed, because it's read-only).
any ideas welcomed!
thanks,
Ben
I have tried setting the syncroot of the arrays (which failed, because it's read-only).
any ideas welcomed!
thanks,
Ben