Many times you need to call a function/method that does some really heavy work. However, you don't want this function call to block your main application. You want to maintain a responsive GUI, for example!
This famous problem has a solution using multi-threading. From my background in the C++ Qt framework, I know the basic principles involved. And there is a very famous Qt example that explains how this "Worker Thread" solution can be implemented: The Madelbrot Example
Today I wanted to solve the same problem but in the C# (.Net Framework) context. Fortunately, the MSDN had a similar example that illustrates the solution to this problem, making use of the BackgroundWorker class:
http://msdn.microsoft.com/en-us/library/hybbz6ke.aspx
Popular Posts
-
One of the most important metrics used in evaluating the performance of binary classifiers is the Precision-Recall curve. From Wikipedia: It...
-
In this post I will be gathering some links about the physiological signals datasets that are publicly available on the web. This post will ...
-
Many times you need to call a function/method that does some really heavy work. However, you don't want this function call to block your...
-
I needed a quick way to split a video sequence into its individual frames and save those frames as images. FFmpeg seemed like a good handy ...
-
Recently I needed to add a header/footer to an existing PDF file. With some help from this link, I figured it out: http://coding.derkeiler.c...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment