I have a C# class library (.Net 3.5) compiled as dll and imported to Unity3D. In certain method I must wait on main thread before continuing main process. So I use a ManualResetEvent object to wait a ...

I am writing a program that has a few threads, each with a while loop that runs until the user specifies it should stop. I thought of a few ways to exit out of the loops, and subsequently the threads, ...

I have a windows service with a timer. About 3 times a day the timer uploads files to different ftp servers. I set the timer, upload the files, then set the next time. This worked fine for a while, ...

I implemented Thread pooling using NSOperationQueue. In which i set maxConcurrentOperationCount to 25. i.e. concurrently 25 threads are running at a time.
I am uploading chunks to a server by using ...

what happens if a manual-reset event is set using setEvent but not reset using ResetEvent; and that event is triggered multiple times.i.e. while the event is getting processed, again the event is set.
...

I've got a Problem with the automatisation of WebBrowsing in an C#-Program.
I've used the code before for a BHO and there it was working.
But within a pure c# Program there seems to be some kind of ...

An ASP.NET invoice application has a save button, that triggers (among other things) the generation of a pdf file on disk using the form data, the userID etc.
An excerpt from the GeneratePDF method:
...

I'm downloading two JSON files from the webs, after which I want to allow loading two pages, but not before. However, the ManualResetEvent that is required to be set in order to load the page never ...

Say i have a fifo (named pipe) which gets open multiple times from multiple processes or threads. All of them will call select() for read concurrently. If a writer comes in and writes, say one byte ...

I'm using an application that synchronizes threads using ManualResetEvent. FxCop told me to dispose those objects. I found the following discussion which told me the same:
Do I need to Dispose() or ...

I know that I cannot make a true synchronous call in Windows Phone 7. However, I'm trying to at least block the threads from processing until the async call is made or there is a timeout. I've tried ...

I have a problem in a production service which contains a "watchdog" timer used to check whether the main processing job has become frozen (this is related to a COM interop problem which unfortunately ...

I am trying to do the right thing and call Dispose on my ManualResetEvent(s), but they need to be around (since multithreaded application with button clicks that rely on the events) until the form is ...

I'm trying to fix memory spikes in a very large application. While I'm not sure how much of an effect this would have on memory, I noticed the following:
Application uses a custom thread pool to do ...

Windows allows the creation of (named) Event objects.
An Event (the synchronization primitive in Windows) can be of type auto-reset (in which case you could say it's kind of a semaphore) or it can be ...

Sometimes when I use assemblies that have an asynchronous approach for interaction (you call a method and then you get an event back with the answer) I like to convert them to synchrounus methods by ...

I have got a windows service written in VS 2010 / .NET 4.0.
The service is following the scheme of the code snippet below: Using a timer, it executes some desired behaviour every couple of minutes. ...