thread-safety
if i call a non synchronized method from my synchronized method is non synchronized method thread safe?
I i make a call to noonsynchronized method from within my synchronized method is it thread safe? I have 2 methods as follows:[详细]
2023-04-06 22:52 分类:问答What is the best/safest way to access the main UI thread?
I would like to know, what is the best/safest way to access the main UI thread from another thread. Should i use Dispatcher.BeginInvoke?[详细]
2023-04-06 15:28 分类:问答What's the usual best way to lock a collection?
Suppose I have a collection of items which is read and written accross a multithreaded application. When it comes to apply an algorithm over some items I thing of different ways to acquire a lock.[详细]
2023-04-06 07:53 分类:问答WindowsFormsSynchronizationContext locks for a long time on Post
I have been looking at the delay/lock of posting asynchronously to a WindowsFormsSynchronizationContext and have discovered that this uses the Control.MarshaledInvoke method, which has two locks insid[详细]
2023-04-06 07:52 分类:问答c# console app using thread
I have a console app. I need to implement a do while that loop infinitely and a thread that at every 3 seconds returns a list of items from a page. How can I do that? I have a methold called getId( st[详细]
2023-04-05 22:28 分类:问答A notification system to track user activity on Rails
I\'m working on a gem that would generate notifications based on event triggers. For Example, in a CMS, if an article is created, a notification \"Article x created by user y\" would be generated. (li[详细]
2023-04-05 21:02 分类:问答.NET List Thread-Safe Implementation Suggestion needed
.Net List class isn\'t thread safe. I hope to achieve the minimal lock needed and yet still fulfilling the requirement such that as for reading, phantom record is allowed, and for writing, they must b[详细]
2023-04-05 18:20 分类:问答Servlet generates PDF but sometimes the invocation behaviour gets bogged down
A servlet generates a PDF document after a preview page has been generated within an iframe which is generated at first. This usually works and looks like this:[详细]
2023-04-05 14:56 分类:问答How to evaluate a python module is thread-safe or not?
Well, the initial thing to my mind was how to make sure if pydispatcher or pubsub is thread-safe or 开发者_StackOverflownot. pubsub might be a little tricky or complex to figure out but pydispatcher s[详细]
2023-04-05 14:56 分类:问答Is stl vector concurrent read thread-safe?
I am working on a application where huge number of threads are expected to iterate over set of string values and try to match it\'s own data with the data available in the list.[详细]
2023-04-05 08:15 分类:问答