i have counter - let's call : itemsremaining.
i have dynamic amount of threads, example, let's have 10 threads.....
each thread contain loop, , each iteration in loop unit of work, should update itemsremaining variable on gui thread. private int, or control value.
how can accurately update itemsremaining multiple thread calls? while @ same time not taking big performance knock locking?
you should check methods interlocked class.
Comments
Post a Comment