My Photo
Name:
Location: Athens, Greece

A thing of beauty is a joy forever
Its loveliness increases
It will never pass into nothingness
But still will keep a bower quiet for us
And a sleep full of sweet dreams and health and quiet breathing
Endymion,J.Keats
End? No, the journey doesn't end here. Death is just another path one that we all must take. The grey rain-curtain of this world rolls back and all change to silver glass and then you see it.White shores and beyond. A far green country under a swift sunrise
Gandalf
Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition
I.Asimov
Our loyalties are to the species and the planet. We speak for Earth. Our obligation to survive is owed not just to ourselves but also to that Cosmos ancient and vast from which we spring
C. Sagan
'O me!O life! of the questions of these recurring; of the endless trains of the faithless--of cities filled with the foolish;what good amid these,O me,O life?
Answer.That you are here that life exists,and identity;that the powerful play goes on and you may contribute a verse.'
W.Whitman

Tuesday, July 29, 2008

Multithreading

Ok so I'm still in a state of writer's block, I still watch Freddie @ Wembley everyday, so I'm not even going to try to put words into coherent sentences.

But this just came in from The Register and for someone who really really really understands the author about multi threading and locks (yes suicide is the best option there):) this is an unusual right-to-the-point article.

Hope it does come true. Here's to hoping!

And as a note:

Two fundamental facts about multi-threading with locks:
  1. You’re going to fuck it up.
  2. If you think that you haven’t fucked it up, you have. You just don’t know it yet.
With that in mind, there are three ways to control concurrency with locks.
  • First, you can make fine-grained locks, which require a lot of bookkeeping and management.
  • Secondly, you can also make coarse-grained locks, which are easier to implement but lead to a lot of contention.
  • Finally, and this is perhaps the easiest solution, you can kill yourself. Believe me, number three looks pretty tempting after trying to find a thread related Heisenbug for two weeks.

Oh yeah baby.......

Labels:

0 Comments:

Post a Comment

<< Home