Hellw guys, I have the following code
for(int i =0;i<100;i++)
this foo function exports pdf crystal reports, how can i start more than one thread to speedup this operation??
View Complete Post
Having more than one CPU core on a single chip makes a system with a processor with two cores operate just like a dual-processor computer, and a system with a processor with four cores operate like a quad-processor computer, so you get much better performance. But if your application does not take advantage of these multiple cores, you may not reap the benefits. OpenMP helps you create multithreaded C++ applications more quickly so the benefits of multithreading can be realized.
Kang Su Gatlin and Pete Isensee
MSDN Magazine October 2005
MSDN Magazine January 2004
I have a singleton class thats used throughout an application. The app will be multi threaded, each thread will access methods in the singleton class. Is it best to create an instance of the singleton class at application startup then pass that into each thread, or is it safe to create an instance in each thread separately ? (I check that no instance currently exists in the singleton class itself, so only 1 instance will ever be invoked)
Actually i want to upload a powerpoint file and do the conversion process(convert it to wmv) in the background so that i may not get blocked untill the process gets finished because it's a long process.How can i do that?Is ThreadPool can do that for me ?Any suggestions please ?
I have a basic doubt on multithreading. I understand multithreading improves UI response and can be used for long operations. But when talking on asp.net requests and the thread pool, say that the main thread hand over its task to a new thread for the long awaiting operation. But it still uses another thread, so atleast one thread is serving the same request. But how does it improve other requests more fastly though the number of threads consumed are same here.
note: Multithreading code adapted from here http://elegantcode.com/2009/07/03/wpf-multithreading-using-the-backgroundworker-and-reporting-the-progress-to-the-ui/
The Problem: The line is not rendered consistently, only on the mouseleftup event.
Scenario: 1. Michael clicks the Line button on the toolbar
2. Michael brings the mouse over the ink canvas and clicks the left mouse button
3. While moving the mouse to the right to draw a line, he notices that nothing shows up.
4. On releasing the mouses left button, the line finally renders correctly.
I realize that i most likely need to multithread to accomplish this.
To begin i have a basic WPF setup, menu bars, borders, toolbars, and i have an ink canvas. The goal of this project is to familiarize myself with image editing and drawing programs. I created a basic Line2D class.
public class Line2D
public Line2D(InkCanvas curren
I know that if you stripe backups across multiple destinations, the backup process will assign a thread for each destination. I would like to verify how multithreading works in regards to filegroup backups. I've tried BOL, and google for
a while, and haven't found a clear answer. My question is really two-parts:
Our full backups are reaching 9+ hours. The vast majority of the data in the database is varbinary(max) data. We are running SQl Server 2008 SP1 on Windows Server 2008 R2.
Any input, or links to good information about this subject will be greatly appreciated. Thanks!
I've found some interesting links on the web about backgroundworker for .net CF, I'm trying to do a loop while a blink label shows "Working...". First when I declare: using backgroundworker I get the error:
Error 1 The type 'System.ComponentModel.BackgroundWorker' exists in both 'C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.dll' and 'C:\Documents and Settings\ACabrera\Desktop\AsynchCalcPi\BackgroundWorker\BackgroundWorker.dll' C:\Documents and Settings\ACabrera\my documents\visual studio 2010\Projects\WindowsFormsApplication3\WindowsFormsApplication3\Form1.cs 9 7 WindowsFormsApplication3
Have anyone tested this before?
I want to show a message while a consuming time operation runs. I know that I've to use a thread for that. But why I can't use it in this way:
private void button1_Click(object sender, EventArgs e)
//Consuming time operation
for (int i=0;i<10000;i++)
private void ShowWorking(object stateinfo)
private void updMsg(object sender, EventArgs e)
lblWorking.Visible = true;
Why I have to put in the thread the consuming time operation?
Thx in >>