Getting C++ Threads Right

Hans Boehm has given a very interesting lecture on “Getting C++ Threads Right” at Google last month. The lecture is available in video format from here ABSTRACT The advent of multicore processors has generated profound debate on the merits of writing parallel programs with threads and locks. Nonetheless, for many application domains, this remains the standard paradigm for writing parallel programs, and at the moment, there is no apparent universal replacement. And it is the focus of this talk. Somewhat surprisingly, there are a number of often subtle, but generally fixable, industry-wide problems with current approaches to threads programming. We’ll focus on probably the most widely used environments, consisting of C or C++ with a standard threads library. Problems span the spectrum from system libraries through language implementations through supporting hardware. They get in the way both in that they often make it difficult to write 100% reliable multi-threaded software, and in that they confuse even the basics of the programming model, thus making it hard to teach. A surprising number of “experts” do not understand the basic rules. Arguably, these problems really need to be addressed to even allow a meaningful comparison to other parallel programming approaches. Since solutions to these problems generally require a coordinated industry effort, we helped to persuade the C++ standards committee to address them by pursuing a coherent approach to threads in the next C++ standard. The talk will outline some of the proposed solutions, and give an update on this effort. Speaker: Hans Boehm Hans Boehm is a member of the advanced architecture group at HP Labs. He has worked on many aspects of programming language design and implementation, including garbage collection and concurrency, and he was HP’s representative to the effort to redesign Java’s memory model. He is a past Chair of ACM SIGPLAN, and is an ACM Distinguished Scientist. The slides for the lecture are available from: http://www.hpl.hp.com/personal/Hans_Boehm/misc_slides/c++threads.pdf. ...

January 21, 2008 · 3 min · 430 words

Picture of the Day

Figure 1: Comprehensible, and therefore wrong, software process. Figure 2: More complicated, and therefore better, software process. Figure 3: Simplified Software Process (SSP) model. Pretty dumb. Incredibly popular.

January 18, 2008 · 1 min · 28 words

We live in a Geek World...

… or, at least, I do! ;)

January 18, 2008 · 1 min · 7 words

One day you are here, the other...

It’s incredible. She was here around with us, working with us. Managing the career of people. Of Software Engineer like me. English: controlled, polite but sociable and engaged and enthusiast in her job. Vomiting. Strong Vomiting. Anyone assumed was just a Virus of the Flue a little bit stronger than usual. My Engineering Manager’s email of yesterday: What Suzanne thought was the sickness and vomiting bug actually turned out to be a small brain haemorrhage when she went to A&E last Wednesday night. Martin, Suzanne’s husband, called on Thursday to let me know what was happening and indicated at that time that Suzanne would require an operation. On talking to him yesterday it transpired that Suzanne has had a subsequent haemorrhage on Sunday night…. ...

January 16, 2008 · 1 min · 131 words

Picture of the Day

January 11, 2008 · 0 min · 0 words

Picture of the Day

The Holy Bible: The Right Advise ;) Thanks to Nemo for the link!

January 5, 2008 · 1 min · 13 words

Before... and After

This comes from my friend Nino aka Sensei aka NinoSoft aka Benedetto. First, in Italian: PRIMA DELLE NOZZE lei: Ciao Bernardo! lui: finalmente! da quanto tempo aspettavo questo momento! lei: vuoi che vada via? lui: NO! Come ti viene in mente? Solo a pensarci, rabbrividisco! lei: Mi ami? lui: Certamente! a tutte le ore del giorno e della notte! lei: Mi hai mai tradito? lui: NO! MAI! perchÈ me lo chiedi? lei: vuoi baciarmi? lui: Si, ogni volta che ne ho l’occasione! lei: Saresti mai capace di picchiarmi? lui: Sei impazzita? Lo sai come sono io! lei: Posso fidarmi di te? lui: Si! lei: Tesoro … 7 anni DOPO LE NOZZE basta leggere il testo dal basso in alto… ;) ...

January 1, 2008 · 2 min · 237 words

Said by...

… Stavo per partire, dovevo andare da mio cugino a Milano. È strano come con chiunque parli, qualunque sia l’argomento, appena dici che stai per andartene via ricevi auguri, complimenti e giudizi entusiasti: «È così che si fa. Fai benissimo, lo farei anch’io». Non devi aggiungere dettagli, specificare cosa andrai a fare. Qualunque sia il motivo, sarà migliore di quelli che troverai per continuare a vivere in queste zone. … ...

December 29, 2007 · 2 min · 280 words

Said by...

[About Christmas]… Please take the time to rest when the work is done. Remember, the difference between humans and computers is that our uptime is a function of our downtime. President and CEO of Sun Microsystems

December 25, 2007 · 1 min · 36 words

Prelude du Fornication

December 12, 2007 · 0 min · 0 words