parallel

What is the native way to create a shortcut (.LNK file) from the Windows XP command line?

EDIT! Sorry to change the question on everyone, but I am really just asking: How do I create a shortcut (.LNK) file from the command line with as little outside help as possible? I really don't want to run a VBscript or to download a program to do it for me. Is it really that hard? Thanks to everyone who provided exceptional answers...

How to download fast lots of web pages in ruby? Parallelizing download?

I need to scrape(using scrAPI) 400+ web pages ruby, my actual code is very sequential: data = urls.map {|url| scraper.scrape url } Actually the code is a bit different (exception handling and stuff). How can I make it faster? How can I parallelize the downloads? ...

mutually-exclusive job scheduling in GNU make?

Using GNU make, is it possible to create a set of targets that will never be scheduled at the same time when using the "--jobs" option? Background: To make this a little more concrete, consider a makefile of the form p1: ...deps... # no parallelization conflicts (can run at the same time as p*, e*) ...rules... p2: ...deps... ...

Best VM for Delphi development with parallel port

I see that a number of people are doing S/W development (not just Delphi) using a virtual machine to host the IDE and all required files. I've used Microsoft Virtual PC to debug issues with my Applications on various OS's but with little access 'outside' the VM. My applications use USB, serial and - crucially - direct I/O writes to hardw...

InvalidOperationException using PFX w/ Windows Forms

I have two exceptions here. Not sure why they occur because I use Form.Invoke to run UI updates on the UI thread. So first, using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Xml; using System.Windows.Forms; namespace Toplr { using Sy...

Am confused about parallel Haskell

How is this code: parfib :: Int -> Int parfib 0 = 1 parfib 1 = 1 parfib n = nf2 `par` (nf1 `par` (nf1+nf2+1)) where nf1 = parfib (n-1) nf2 = parfib (n-2) Better than this: parfib :: Int -> Int parfib 0 = 1 parfib 1 = 1 parfib n = nf2 `par` (nf1 `seq` (nf1+nf2+1)) where nf1 = parfib (n-1) ...

How do I ensure all loops finish in the same time in Parallel.For?

Hi, In C# (.NET), I got 2 loops -> A for ... do: { B for do: { something} something that evaluates all "for"s in B loop } I used Parallel.For for the inner loop but the results of those loops varied every time I ran the application. I think it may be a result of Some asynchrounous work, but I am not sure how to be sure ab...

Know of any cool projects done with Parallel Programming and/or the Cell processor?

I've been doing some messing around with the cell processor on the playstation 3 and, having made a few small programs (finding distances between every point in two lists of points ,mandelbrot set generator) I'm looking for something a little bigger to expand my knowledge of the platform. I figured I'd look at what contests for the cell ...

Minimal "Task Queue" with stock Linux tools to leverage Multicore CPU

What is the best/easiest way to build a minimal task queue system for Linux using bash and common tools? I have a file with 9'000 lines, each line has a bash command line, the commands are completely independent. command 1 > Logs/1.log command 2 > Logs/2.log command 3 > Logs/3.log ... My box has more than one core and I want to execu...

Advantage of setting threads to work on a particular core?

Hi, Is there any evidence to suggest that by manually picking which processor to run a thread on you can improve system performance? For example say you dedicated the thread that does the most work to one core and all other "helper" threads to a second. ...

Parallelising tree recursive procedure

I wrote the change count problem from sicp in F# in the following way let count_change amount = let first_denomination kinds_of_coins = match kinds_of_coins with |1->1 |2->5 |3->10 |4->25 |5->50 let rec cc amount kinds_of_coins = match (amount,kinds_of_coins) with ...

what is a "Spark" in haskell

i'm confused about the notion of "spark" Is it a thread in haskell ? or is the action of spawning a new thread ? Thanks everybody: So to summarize, sparks are not thread but more of unit of computation (tasks to put it in C#/Java terms). So it's the haskell way of implementing the task parallelism ...

Fast Interleaving of Data

I'm working with some piece of hardware (the hardware itself is not important) and I need to split some block data intro separate pieces in order to make the thing run faster. So I have, for example a contiguous block of memory X words long. For visualzation, I'm arranging it into 50 word lines below: 001 002 003 004 005 006 007 ....

How to run tasks in parallel in MSBuild

Unless I've grossly misunderstood MSBuild, tasks are executed in the document order in which they appear within a 'Target' node. I'd like to be able to specify that two tasks (such as xcopy tasks) could run in parallel. I was expecting there to be a 'Parallel' task or something...? ...

How well does Valgrind handle threads and machine-level synchronization instructions?

I have a highly parallel Windows program that uses lots of threads, hand-coded machine synchronization instructions, and home-rolled parallel-safe storage allocators. Alas, the storage management has a hole (not a synchonization hole in the allocators, I'm pretty sure) and I'd like to find it. Valgrind has been suggested as a good tool...

Example of a parallel acceleration anomaly

What is an example of a parallel acceleration anomaly? ie. A task that when run over p processors, results in a speedup greater than p. ...

questions about view interpolation

Now I am doing reaserch on view interpolation!I want to generate the in-between views from from the two parallel perspective images. Now I have found out feature points of the two parallel images,and also matching the points of the two images.And I divided the two images into matching triangle meshes using the feature points as the v...

Parallel coding Vs Multithreading (on single cpu)

can we use interchangeably "Parallel coding" and "Multithreading coding " on single cpu? i am not much experience in both, but i want to shift my coding style to any one of the above. As i found now a days many single thred application are obsolete, which would be better for future software industy as a career prospect? ...

Does Parallel.ForEach limits the number of active threads?

If var arrayStrings = new string[1000]; Parallel.ForEach<string>(arrayStrings, someString => { DoSomething(someString); }); All 1000 Threads will spawn almost simultaneously? ...

STATHREAD as async workflow in F#

Consider the following code fragment: let t1 = async { return process1() } let t2 = async { return process2() } let t3 = async { return windowsProcess() } let execute = [ t1; t2; t3 ] |> Async.Parallel |> Async.RunSynchronously |> ignore What to do in the case the windowsProcess requires a STATHREAD? Is this possibl...