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
-
Debian 5.0 (codenamed "Lenny") is out. Check: http://www.desktoplinux.com/news/NS4199843436.html It appears that Debian 5.0 (aka ...
-
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...
-
I found this interesting post, quoting: apt-get build-dep glibc apt-get source -b glibc should work or, if you already have the build-depen...
-
You need to install the gcc-mutlilib package. Then: $ gcc -o hello -m32 hello.c the -m32 flag tells the compiler to target the 32-bit archi...
-
I just got this from a friend :) http://www.neatorama.com/2008/02/07/the-evolution-of-tech-companies-logos/
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment