Slight problem i have been pondering on, i have a class that loads a text from a url as a means to sync the time.
How to wait and notify lik开发者_如何学编程e in Java In C/C++ for shared memory between two or more thread?I use pthread library.Instead of the Java object that you would use to wait/notify, you need
I am putting together a site made out of two scripts, with users. The 2 scripts have info about the members , they will act as one site so I need the users info to be the same on both. When the user
I am using NHibernate for a project, and I am absolutely beginner. I am fetching some objects from a table and showing it to a form, where they开发者_运维问答 can be edited. If an user inserts a new o
I\'m just learning Java, and I find that the Java docs/books put a strong emphasis on synchronization.I have read quite a bit of c# docs/books, and you just don\'t see that much emphasis on this topic
In my current C#/NET 3.5 application, I have a task queue (thread safe) and I have 5 worker threads that has to constantly look for tasks in the queue. If a task is available, any one worker will dequ
Using C# in WPF, together with LINQ to SQL and LINQ for quering my generic collections, I noticed that sometimes, when I use several methods one after another and results of the first one are needed f
I have an application with one main thread and N worker threads. At some point I need that the main thread waits until all the N threads have completed one section of their work.
I\'m trying to implement a critical section in CUDA using atomic instructions, but I ran into some trouble. I have created the test program to show the problem:
I trying to implement synchronization algorithm in C#, without success. Why isn\'t the following code thread safe?