Click here to Skip to main content
Page 1 of 3
Page Size: 10 · 25 · 50


Tag filtered by:  Parallel [x]
Technical Blog 13 May 2013   license: CPOL
“Programming Massively Parallel Processors (second edition)” by Kirk and Hwu is a very good second book for those interested in getting started with CUDA.
Answer 11 May 2013   license: CPOL
Set up a BackgroundWorker thread for each directory - they can share the same code, provided they don't affect any UI elements directly, and only use parameters and local variables (not class level variables: you would need locking for that).The MSDN page on BackgroundWorker includes a...
Question 11 May 2013   license: CPOL
I am creating an application where i am moving files from one directory to another, where i have a function which process moving files.My problem is i have four directories where i want to process my function to move files parallellyby perfoming multithreading process but my function...
Tip/Trick 8 Apr 2013   license: LGPL3
The HPC Template Library is a supplement to the Standard Template Library providing threadsafe containers.
Article 1 Mar 2013   license: CPOL
Local scope delegates and Lambda expressions allow for some very smart and useful utility functions.
Question 28 Feb 2013   license: CPOL
Hi Everyone...I have a Parallel.Foreach loop by which i load a listview , i have a button for stop the execution.Now my question is , when the execution is going on if i push the button then the process will be stopped .I found some code in net but nothing happens.my code is private...
Answer 25 Feb 2013   license: CPOL
Hi,You are trying to access a control in other threads that was created in main thread. The exception you will get from your code is the Cross-thread exception.Try the code below:delegate void SetListviewItemsCallback(ListView.ListViewItemCollection listViewItems);private void...
Question 25 Feb 2013   license: CPOL
Hi Everyone..... I have a list view , where i want to show a collection of data recursively ..., I use back ground worker to keep my user interface active .., i also use Parallel.ForEach to load the data in list view at a time .My code is:public void bg_DoWork(object sender,...
Article 22 Jan 2013   license: CPOL
Write synchronous-looking asynchronous methods without async/await in Visual Studio 2010.
Answer 18 Jan 2013   license: CPOL
Multithreading or parallel may or may not speed things up - it can actually slow things down because of the processing overhead in setting up the thread / tasks and allocating separate memory space for them. In addition it depends what else is going on - if each thread needs to talk to SQL then...
Question 18 Jan 2013   license: CPOL
Here is the scenario: I have a dll which has method that gets data from db, depending on parameters passed, does various checks and gives me required data.GetGOS_ForBill(AgencyCode)In a windows application, I have listbox which list 500 + agencies. I retrieve GOS for each agency append to a...
Answer 19 Dec 2012   license: CPOL
The performance impact of too many locks defeats the object of multi-threadingSee http://tipsandtricks.runicsoft.com/CSharp/ParallelClass.html[^] for a fuller explanation.
Question 18 Nov 2012   license: CPOL
According to code segment, is it thread safe? if not what should I do?Second, Is there any relation between number of cores of CPU and number of tasks?var t = new Task[2]{ Task.Factory.StartNew(()=> { foreach (var item in firstsortedlist) { ...
Answer 18 Nov 2012   license: CPOL
Your collection type should be thread-safe. It is not, this is not a problem, but you should make all calls you use thread safe, by simply wrapping each of them in the lock statement on the same lock object: lock(someLockObject) firstsortedlist.Add(item.Key, item.Value);// where...
Question 5 Nov 2012   license: CPOL
I have a lot of sortedlists in my program. I run my program for large number of repeats. In each repeat a lot of data add to the sorted lists and data from previous repeat also add to current list through loops.At first, number of data is small then the program is fast, but gradually amount of...
Answer 3 Nov 2012   license: CPOL
It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy...
Question 3 Nov 2012   license: CPOL
hello i have an algorithm and i want to know how it works and how it divides processorsplease help me its very important for meAlgorithm Operation C ← AB using Sparse SUMMAInput: A ∈ Sm×k,B ∈ Sk×n: sparse matrices distributed on a pr ×pc processor gridOutput: C ∈ Sm×n: the product AB,...
Answer 25 Oct 2012   license: CPOL
I think you are asking about multiple threads. In desktop application you can use BackgroundWorker. It will help you. Or you can use Delights.
Answer 23 Oct 2012   license: CPOL
A starting point: "Parallel Programming in .NET Framework 4: Getting Started"[^].
Question 23 Oct 2012   license: CPOL
hello,what is the best method to use parallel programming without affecting other running process performance and without making windows becoming slower.
Answer 7 Sep 2012   license: CPOL
Any problem where there are several computationally expensive and independent tasks that need doing is ripe for parallelism. A Mandelbrot generator or similar could be a good intellectual exercise. In the real world it's usually when you're trying to simulate something with varying parameters,...
Question 7 Sep 2012   license: CPOL
Hi,I'm looking for apps to develop to increase me knowledge of parallel programming. I did one with a pivot sort but I'm wondering is something like a primality test would be worth doing or if anyone has any other ideas. I'm not looking for coded solutions, just ideas. I'm not really...
Article 3 Sep 2012   license: CPOL
An informal survey of implementation techniques of the map higher-order function for arrays in C#.
Tip/Trick 17 Aug 2012   license: CPOL
Parallel port data register control with C# .NET 2.0 and inpout32.dll.
Article 15 Aug 2012   license: GPL3
Time division multiplexing between 6 x 7-Segment displays control with Parallel Port and x86 assembly.
Answer 27 Jul 2012   license: CPOL
If you look at the MSDN page for BindingList[^] you will see the following at teh bottom:"Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe."This means that the threads are interfering with each other!...
Question 27 Jul 2012   license: CPOL
Hi All,I'm tried Parallel Linq for adding data to an object. but some of the values are missing when clicking the button multiple times. The code is BindingList addnew = new BindingList();System.Threading.Tasks.Parallel.For(0, 1000, i => addnew.Add( ...
Answer 15 Jun 2012   license: CPOL
Gday, I'm not so sure I understand each of your points and your questions - though I'll do what I can to address them.XBox, PS3 actually only have a couple of cores, like PCs. PS3 - 8 for the cell, 6 as implemented in ps3 variants.Xbox360 - 3 for the PowerPC XenonJust like PCs, the...
Answer 15 Jun 2012   license: CPOL
More cores quite simply means you can do more at any one time. Most cores also support threading. Processors work using something called the fetch execute cycle. This cycle has 4 stages and it's possible for 4 separate threads to work within a single processor as each one exists within each...
Question 15 Jun 2012   license: CPOL
Hi All, After reading about parallel programming by multicore processor,I have some doubts. Its undoubtedly best idea for play stations,X-Box [as they have soo... many cores] But will it prove to be effective for core i7 running 8 parallel process then running 100 thread in Windows...
Answer 25 Apr 2012   license: CPOL
at last i got a hold of something usefullhere maybe this will help another noob like me void Calling_Method_In_Separate_Thread() { ParameterizedThreadStart parameterizedThreadStart = Method; var thread = new Thread(parameterizedThreadStart); ...
Answer 24 Apr 2012   license: CPOL
as of this http://tipsandtricks.runicsoft.com/CSharp/ParallelClass.html[^]i think parallel for wont do what i needbut i think im on to something with this but im not sure yethttp://msdn.microsoft.com/en-us/magazine/cc163340.aspx[^]
Answer 24 Apr 2012   license: CPOL
In order to convert a solution to parallel you need to check also for output and input dependencies. for example it is not possible to run Fibonacci numbers in parallel, because a value X, depends on previous values x-1 and x-2.So that being said, be aware that not everything can be...
Answer 24 Apr 2012   license: CPOL
If I understand your question correctly -- you want to have computation threads performing in parallel to make this look run faster. Is this correct?You need to break this down into simple steps then you can turn it into a multi-threaded process.1) break out your computation in your...
Question 24 Apr 2012   license: CPOL
first of all I apologize for my Englishi am trying to optimize/speed up some code i madeto make a texture with the information of the depth frame provided by a kinecti have been looking at System.Threading and other stuff but haven't been able to make this parallel any help would be...
Answer 12 Apr 2012   license: CPOL
class Program { static void Main(string[] args) { Stopwatch timer1 = new Stopwatch(); Stopwatch timer2 = new Stopwatch(); timer1.Start(); int max = 10000000; ConcurrentBag intQueue = new...
Question 21 Mar 2012   license: CPOL
I need to design a custom data glove for my project. in one end of the glove am using LED light and in another end am using a photo detector and both the LED and the photo diode are placed inside a heat shrink which is stuffed with the transparent wire which conducts the light(similar to...
Question 18 Mar 2012   license: CPOL
I am coding in c#.net 4.0 for my project on parallelism.After coding I came across a problem that parallel exec. time is coming more than sequential one.'x' and 'y' are global arrays variables. Program object1= new Program(); Program object2= new...
Answer 18 Mar 2012   license: CPOL
Parallel does not mean that things happen at the same time. All it means is that operations can occur in separate threads, which may (or may not) run on separate cores. This assumes that there are free cores to run the threads, or all that happens is that the extra overhead of establishing the...
Tip/Trick 15 Mar 2012   license: CPOL
Using parallel_for_each which is part of Parallel Pattern Library ( PPL )
Answer 16 Jan 2012   license: CPOL
simple image process program using open mpThat is the first mistake: Multithreading is never simple!The second problem is memory access: I don't know how clever OMP goes about it, but I doubt it will recognize that for each y you access values from a very specific range of memory, and...
Question 16 Jan 2012   license: CPOL
hi everyone!i'm working with a simple image process program using open mp,but can't get make my program faster as it's supposed to be.the process time of the code bellow was 0.5secs.but with the open mp line commented out, it was only 0.1secs.i can't see what is going on.please...
Answer 15 Jan 2012   license: CPOL
The inner loop var x is shared by default. You should make it private:#pragma omp parallel for private(x)This should boost performance. But I'm not sure if this is all.
Answer 15 Jan 2012   license: CPOL
Did you gain 5 times in performance? This is better result as I would expect. How could you expect more if you only have 2 cores? Do you think parallel processing is the miracle, can draw power from nowhere? :-)—SA
Answer 13 Dec 2011   license: CPOL
Have a look at the ThreadPool class and TaskScheduler class. And... I think the third link might be a good example of what you are looking...
Question 13 Dec 2011   license: CPOL
Hi, I am looking for a way to set a Fixed concurrent tasks number..As far as i know Task.Factory does not have anything like and i'm stuck.I've also though about the BlockingCollection and the Producer-Consumer model but i'm not sure if this is the right implementation as i have about...
Answer 3 Dec 2011   license: CPOL
The reason is,,,, the value of sum was changed from the 1st for loop and used again in the second block of codes. Try using 2 different variables like: sum1 and sum2Regards,Eduard
Answer 3 Dec 2011   license: CPOL
Hi,You have tried to parallize a calculation where the result of one iteration is dependent on the previous. If the sum was not used in the multiplication the value would not be transferred to the next iteration. You can only parallize stuff where iterations have no relation to each...

Page 1 of 3
1 2 3


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid