Anyone care to tell the rest of the world what this means?It's sorting a list of numbers in the following way (using the example numbers 10, 55, 1, 12):
(I generally consider myself pretty geeky, but I'm lost.)
The obvious downside is that you have to wait an arbitrarily long time for the method to finish, depending on how large the numbers you are sorting are. Also, the whole thing is actually just piggy-backing on the way the computer sorts the list of things it's waiting for.The first can be overcome by using a smarter way to decide how long to sleep for any given thread, and the second can be overcome by using different hardware, for example:
In what way?The "GO!" wires are all set up to be fired simultaneously - i.e. it's really one wire coming out of the first processor, which branches into N parallel wires of equal length and resistance.Leading you to an insurmountable race condition.
@foo = @foo>>.&sleep;
« Older Man confesses to Tupac Shakur robbery and shooting... | DIY Weapons of the Libyan Rebe... Newer »
This thread has been archived and is closed to new comments
posted by Blazecock Pileon at 5:26 PM on June 15, 2011 [1 favorite]